Using the inbound REST API, is it possible to specify date values in GMT time?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2015 03:12 PM
Using the inbound REST API, is it possible to specify date values in GMT time (preferably using ISO 8601 format)? Or do I have to use the javascript:gs.dateGenerate() function which apparently requires the date/time to be specified in the timezone specified in the user's profile?
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2016 02:36 PM
For inbound REST Table API, if query parameter 'sysparm_input_display_value' is set to false (I think it's default), date value will be inserted into database as it's specified in request body. Date values are stored in GMT, so yes if you specify date values in GMT, it will be inserted as GMT if above mentioned parameter is false. However if parameter 'sysparm_input_display_value' is true, API will assume that date value is in user time zone and convert it into GMT before storing it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2020 10:18 AM
Thank you
Adding api/now/table/table_name?sysparm_input_display_value=true to the end of your POST will use the sys_user's time zone.