REST API POST method date/time difference

rrataj
Kilo Expert

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 

4 REPLIES 4

Akash4
Kilo Sage
Kilo Sage

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

Regards, Akash
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

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

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader