Difference in date time parameter data fields on ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2024 06:09 AM
There is a difference between date time field.
We have our system time zone on Europe/Paris, but the backend value of any date/time field is showing on UCT time zone, for which we are facing issue on integration as on the JSON payload it is taking UCT time.
Can anyone suggest how to send system time zone date or the front-end value of the field on JSON payload.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2024 06:28 AM
Hi,
The system by default stores all date time fields in GMT. And based on the user's tome zone setting the data is converted and showed in user's time zones.
So when you send JSON payload you will be sending GMT.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2024 08:15 AM
@Anurag Tripathi Is there any way to send the display value instead of the backend value on the JSON.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2024 12:59 AM
Hi,
By Default it should the backend value only, unless you use getDisplayValue or something like that.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2024 08:49 AM
Hi @Aparajita_ACN ,
Can you please try
var gdt = new GlideDateTime(), gdt.setTimeZone('US/Eastern'), and gs.info(gdt.getDisplayValue())
Please mark my answer correct and Helpful if this works for you
Thanks and Regards
Sarthak