Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to get the timezone of the servicenow instance using REST API

Shahbaz Ali
Kilo Explorer

I need to get timezone and date format of the ServiceNow instance using REST API's, so going through the documentation I formulated a REST query as below :

https://xxxxx.service-now.com/api/now/v1/table/sys_user?sysparm_query=user_name=admin&sysparm_fields...

This query returns the timezone and date format but it returns empty value if the timezone is the System default. 

How can I get the system default timezone?

7 REPLIES 7

Thanks for the reply, but I need a way out using REST API's can you help me with it ?

can you please let me know the requirement here ? why you need instance time zone in api ? 

 

kindly have a look on below thread. 

 

https://community.servicenow.com/community?id=community_question&sys_id=4e9217a1db101fc01dcaf3231f96...

Okay, I am fetching the data from the instance using a user account via REST API's

but I need to be aware of the timezone of the user_account so that I can pull the data at the right time when the data will be loaded into the instance. 

In short data, fetching should be timezone aware