Blank dates displaying as 1970
As per Pega suggestion mentioned in the following link:
the dynamic system setting (DSS) "disableEpochDateTime" was set to true but it still displays a blank date as 1970.
Steps to Reproduce
Perform 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.
disableEpochDateTime 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
Was this useful?
80% found this useful
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.