The CreatorCon Call for Content is officially open! Get started here.

Date and Time is Sending in UTC Time Zone instead of sending in Source Time Zone in Change API

Kumar147
Tera Contributor

Hello,

I am using Change Management API, while sending date and time from a source instance to target instance Date and Time are going in UTC time zone, even i am using sysparm_input_display_value as true. Is there any way to send the exact values instead of converting within the source instance.

1 REPLY 1

Robert H
Mega Sage

Hello @Kumar147 ,

 

I assume you are doing something like this?

GET https://xxx.service-now.com/api/sn_chg_rest/change

 

In that case the API will return three time stamps for each date/time field, where value is the internal time stamp (always UTC), and display_value is the time stamp in the time zone of the user who is querying the API.

RobertH_1-1745867442583.png

If both are the same for you then the user's time zone is set to UTC as well.

 

Regards,

Robert