Support Article
Date to DateTime Conversion issue
SA-43286
Summary
User is trying to assign a date value to a property of datetime property which is later saved to DB table.
They had both server and db time zones as MST.
The value saved in DB table is getting converted to previous date.
Property Name "TriggerDateTime="20170820";" converts to DB column name "TRIG_DATE="20170819";"
User observed that when the date as "20170820" got saved in clipboard as 20170820T040000.000 GMT.
When saving this value to DB this is getting converted to MST and storing as previous day value.
Error Messages
Not Applicable
Steps to Reproduce
Assign any date value to datetime property.
Root Cause
An issue in the custom application where the user has set the operator locale to "America/New_York".
Resolution
Perform the following local-change:
Set the operator locale to "America/Phoenix".
Published December 15, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.