Incorrect Date Time is set from a Datetime property in Pega 7
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.
Steps to Reproduce
- Create a case
- Select a date from the date field calendar. This sets the value for the DateTime property in the Clipboard.
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.
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.