- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2018 10:16 PM
In how many ways we can find the current user time zone, and any user time zone?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2018 10:50 PM
Hi,
You can try the given method.
gs.print(gs.getProperty("glide.sys.default.tz"));

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2018 10:50 PM
Hi,
You can try the given method.
gs.print(gs.getProperty("glide.sys.default.tz"));
If it's empty, it's America/Los Angeles
OR
var myUserObject = gs.getUser()
gs.print(myUserObject.getTZ()); -- returns the timezone of the current user
OR
var gdt = new GlideDateTime();
gs.print("Value : " + gdt.getUserTimeZone()); --TimeZone object for the current user.
To know more about timezone you can have a look at given link.
Thank you!
If it's empty, it's America/Los Angeles
OR
var myUserObject = gs.getUser()
gs.print(myUserObject.getTZ()); -- returns the timezone of the current user
OR
var gdt = new GlideDateTime();
gs.print("Value : " + gdt.getUserTimeZone()); --TimeZone object for the current user.
To know more about timezone you can have a look at given link.
Thank you!