REST API POST method date/time difference

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2018 11:38 PM
Hi,
I am using table API to insert date time into my table,
the rest api is inserting the date/time however
I am sending the date 2018-08-08 12:30:03
and I see in the table the following 2018-08-08 14:30:03
I need to see the same data that I am inserting, can someone explain this?
Thanks
Best Regards
Rafal
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2018 11:45 PM
Hello,
Have you verified the time zones for both the cases, system timezone and request sending timezone. If this is not the error, also that may occur if you provide current date time i.e., nowDateTime() kind of feature and for processing it might be delaying here.
I hope this could help you figure it out, but not sure of the resolution.
Regards, Akash
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2018 11:46 PM
Hi Rafal,
It's something to do with the timezone.
Following links you can check:
https://community.servicenow.com/community?id=community_question&sys_id=4e9217a1db101fc01dcaf3231f9619c5
https://community.servicenow.com/community?id=community_question&sys_id=f7108f21db98dbc01dcaf3231f96194a
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2018 12:40 AM
Hi,
Any update on this?
Can you mark my answer as correct, helpful if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2018 02:39 AM
Hi Rafal,
Any update on this?
Can you mark my answer as correct, helpful if you were able to achieve the requirement. This helps in removing this question from unanswered list and helps users to learn from your thread. Thanks in advance.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader