Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us