Time Zone

NIKHILL72091080
Tera Contributor

 I need to fetch system time zone for TimeZone field in Service Catalog without using Script Include

2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron
Tera Patron

@NIKHILL72091080 

do you want to set that in some text variable?

if yes then you can use default value in single line text variable with this script

If you want you can make that variable readonly since this will be auto populated.

javascript: gs.getProperty('glide.sys.default.tz');

AnkurBawiskar_0-1746009682960.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

J Siva
Tera Sage

Hi @NIKHILL72091080 
Create one single line text field with default value as below. Then utilize that wherever you want in your catalog item.

JSiva_0-1746009720991.png

javascript: gs.getProperty('glide.sys.default.tz');

 

Output:

JSiva_1-1746009780506.png

Regards,
Siva

 

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@NIKHILL72091080 

do you want to set that in some text variable?

if yes then you can use default value in single line text variable with this script

If you want you can make that variable readonly since this will be auto populated.

javascript: gs.getProperty('glide.sys.default.tz');

AnkurBawiskar_0-1746009682960.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@NIKHILL72091080 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@NIKHILL72091080 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks @Ankur Bawiskar