How to get the Servicenow instance Time Zone that is defined in system property using background script?????????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017 12:35 AM
How to get the Service now instance Time Zone that is defined in system property using background script?????????

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017 01:02 AM
Try gs.getProperty("glide.sys.default.tz")
If it's empty, it's America/Los Angeles
See also: Set a system time zone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017 01:44 AM
can i get it displayeed in background script. suppose in property its given Asia/kolkata
then i need to display it as IST
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2018 03:14 AM
Thanks Julian
Regards,
Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017 01:41 AM
HI Suprakash,
If you can use this script in Backgroun:
gs.print("Value : " + gs.getProperty("glide.sys.default.tz")); It will show Empty TimeZone.
If you try this one:
var gdt = new GlideDateTime();
gs.print("Value : " + gdt.getUserTimeZone());
This will show the User TimeZone
Please hit if you like this