Background script timezone

karthik73
Mega Guru

Has there been any changes in the way timezones are handled in background scripts? Earlier i can run with my timezone (EST), but now when i try the times are being queried in UTC format.

8 REPLIES 8

Hi Abhinay,



i am just trying to print gr.sys_created_on in the background script.


use getDisplayValue();


gr.sys_created_on.getDisplayValue();


Thanks Abhinay, but, i don't think i ever seen different time formats in background scripts. Hence, wondering if something has changed....


You might have overlooked. When you say gr.<field_name> you will get the value in UTC time zone by default. If you use getDisplayValue() it returns in the user time zone. Please mark is as correct, so that others who have same issue can find the answer quickly.