code: public static int convertExpiryTime(int original) {
          if (original == 0) {
              return original;
          } else if (original > THIRTY_DAYS) {
              return original + (int)Info.getClockOffset();
          }
  
          return (int)((new Date().getTime() / 1000) + original + Info.getClockOffset());
      }
docs: Converts an expiration value to an absolute Unix timestamp.
  @param original The original value passed in from the client. This can
  be a relative or absolute (unix) timestamp
  @return The converted value