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

Amit Verma
Kilo Patron
Kilo Patron

Hi @kartikey 

 

You can get the list from this link https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

 

Also, below links could be helpful to you :

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0966083

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0594661

 

Thanks and Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

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