Blank dates displaying as 1970
As per Pega suggestion mentioned in the following link:
https://pdn.pega.com/sites/pdn.pega.com/files/help_v72/procomhelpmain.htm#zstandarddata/data-admin-systemsettings.htmthe dynamic system setting (DSS) "disableEpochDateTime" was set to true but it still displays a blank date as 1970.
Error MessagesNot Applicable.
Steps to ReproducePerform the following local-change steps:
- Do a SET action in a DataTransform to set a Date property (say A) using another property (say B).
- At runtime if property B is blank then A will be set to the value 01-jan-1970.
Root CausedisableEpochDateTime is applicable only for the integration layer which relies on following api internally - com.pega.pegarules.pub.util.PRDateFormat.formatXSDDateTime(Date). As far as the SET action/property-set methods in the clipboard layer return the default value for properties of type DateTime and the default value is 01-jan-1970
. It is expected behavior that the clipboard layer will not return an empty value.
Add a when condition before the SET action to check if the value is blank or not. If the value is blank then skip the step.
Published April 15, 2016 - Updated October 8, 2020