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

Incorrect Date Time is set from a Datetime property in Pega 7

SA-42755

Summary



On setting a DateTime property to the Date field, the Date value is set to an earlier date. This occurs when the Calendar is set to DUBLINMF77 and Locale to en_GB.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create a case
  2. Select a date from the date field calendar. This sets the value for the DateTime property in the Clipboard.


Root Cause



When the date is selected and property defined as DateTime, the time is set to 00:00:00 by default when the date is converted to DateTime. As the difference between Europe or Dublin and GMT is one hour, the date is converted to one day earlier and the time is set to 23:00:00.


Resolution



By default, all the DateTime properties are set in the GMT time zone. Hence, when using Europe or Dublin time zone and setting the date value to the DateTime property, the property value is set to dd/mm/yy 00:00:00. When this Date value is converted to GMT, it is one hour less, that is, it is the previous date with the time set to 23:00:00. Accessing only the Date value retrieves the previous date.


Published March 25, 2018 - 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