DateTime Formatting Errors
Post upgrading Pega Platform 7.2 to Pega Platform 8.3.1, the following issues occur:
Issue 1: On configuring a DateTime property and setting the Read only format as the custom format in the Presentation tab ('Week of:' MMMM dd, yyyy), the date displays incorrectly.
In Pega Platform 8.3.1, the date display as '7Fr24 of:' February 14, 2020.
However, in Pega Platform 7.2, the date displays correctly as Week of: February 05, 2020.
Issue 2: On configuring a Read only text and configuring a Format as ‘Date’ and custom Date format as EEEE in the Presentation tab, the date displays incorrectly.
In Pega Platform 8.3.1, the Date displays as Feb 7, 2020 12:30:56 PM. However, in Pega Platform 7.2, the Date displays correctly as 'Friday'.
Steps to Reproduce
- Configure a DateTime property.
- In the Presentation tab, configure Read only format as the custom format (Week of:' MMMM dd, yyyy).
- Configure a Read only text.
- In the Presentation tab, configure the Format as Date and the custom Date format as EEEE.
A defect in Pegasystems’ code or rules.
Issue 1: In the Template mode, when the custom DateTime format includes plain text in single quotes, in the pega.ui.Formatter.formatDateTime method, the entire String format is processed instead of only the DateTime format.
This feature is implemented in Pega Platform 8.3.2.
Issue 2: The Text control is configured with a property of type Text. In the Presentation tab, the type is selected as Date. This configuration is incorrect.
To display the date, the property type must be Date/DateTime.
This functions in Pega Platform 7.2 since formatting is performed on the server side and JAVA libraries are available to convert the date from any time zone to GMT.
However, in Pega Platform 8.x, the formatting is performed on the client side and libraries are unavailable to convert the Date from any time zone to GMT.
As a local-change, pass the GMT value to the Text property. However, it is recommended to use the Date/DateTime property type instead of Text.
0% found this useful