michoel
09/16/2020, 11:12 PMSESSIONTIMEZONE
function which correctly outputs the local timezone, but I'm struggling a little figuring out the formula to convert a date field in server (Pacific?) timezonebattk
09/17/2020, 3:14 AMmichoel
09/17/2020, 3:17 AM{date}
as the formula, then the output includes the timemichoel
09/17/2020, 3:17 AMmichoel
09/17/2020, 3:18 AMbattk
09/17/2020, 3:32 AMmichoel
09/17/2020, 5:42 AMbattk
09/17/2020, 12:01 PMNEW_TIME({date}, CASE TZ_OFFSET('AMERICA/LOS_ANGELES') WHEN '-07:00' THEN 'PDT' ELSE 'PST' END, TO_CHAR(CURRENT_TIMESTAMP, 'TZD'))
battk
09/17/2020, 12:01 PMbattk
09/17/2020, 12:02 PMbattk
09/17/2020, 12:02 PM{date} - TO_NUMBER(SUBSTR(TZ_OFFSET('AMERICA/LOS_ANGELES'), 1, 3)) / 24 + TO_NUMBER(SUBSTR(TZ_OFFSET(SESSIONTIMEZONE), 1, 3)) / 24 + TO_NUMBER(SUBSTR(TZ_OFFSET(SESSIONTIMEZONE), 5, 2)) / (24 * 60)
battk
09/17/2020, 12:03 PMbattk
09/17/2020, 12:04 PMmichoel
09/21/2020, 11:30 PMbattk
09/21/2020, 11:36 PMmichoel
09/21/2020, 11:38 PM