Support Article

Blank dates displaying as 1970

SA-22097

Summary



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.htm

the dynamic system setting (DSS) "disableEpochDateTime" was set to true but it still displays a blank date as 1970.


Error Messages



Not Applicable.


Steps to Reproduce



Perform the following local-change steps:
  1. Do a SET action in a DataTransform to set a Date property (say A) using another property (say B).
  2. At runtime if property B is blank then A will be set to the value 01-jan-1970.


Root Cause



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.

Resolution



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


50% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.