How to get schedule timezone's equivalent of UTC

kartikey
Tera Contributor

Hi Everyone,

For our requirement we have to create schedules in UTC timezones, i.e. UTC+1 UTC+2 UTC+5:30 and so on.
But the Timezones provided in servicenow are not in such format, how do i get to know what timezones (That are already present in servicenow) would fit for UTC+1 or UTC+2 etc.

Thanks,
Kartikey

2 REPLIES 2

vermaamit16
Kilo Patron

Hayo Lubbers
Kilo Sage

Hi @kartikey ,

 

You can retrieve the 'current' timezone in the active session via the GlideSession api : https://developer.servicenow.com/dev.do#!/reference/api/washingtondc/server/no-namespace/c_GlideSess...

 

All timezones are mentioned in the moment-timezone.js UI script : <your instance>/now/nav/ui/classic/params/target/sys_ui_script.do%3Fsys_id%3Dafc74dc1cb11120000f8d856634c9c07

 

You can also retrieve the saved data and set it in UTC format within script via the GlideDateTime api : https://developer.servicenow.com/dev.do#!/reference/api/washingtondc/server/no-namespace/c_GlideDate...

 

Regards,

Hayo