Background script timezone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2016 02:21 PM
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.
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2016 09:10 AM
Hi Abhinay,
i am just trying to print gr.sys_created_on in the background script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2016 09:11 AM
use getDisplayValue();
gr.sys_created_on.getDisplayValue();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2016 09:17 AM
Thanks Abhinay, but, i don't think i ever seen different time formats in background scripts. Hence, wondering if something has changed....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2016 09:21 AM
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.
