Support Article
DateTimeDifference function returns incorrect values
SA-83304
Summary
DateTimeDifference function returns different results for DateTime values that are less than 24 hours apart on using precision to the day.
Error Messages
Not Applicable.
Steps to Reproduce
- Upgrade from Pega 7.1.9 to Pega 8.2.2
- Call the DateTimeDifference function for two DateTime values that are less than 24 hours apart using 'D' as the precision parameter
Root Cause
A backwards compatibility defect in Pegasystems’ code or rules. A function incorrectly calculated a value in Pega 7.1.9 and was updated in newer releases.
Resolution
Perform the following local-change:Adjust the application functionality that utilizes the function to account for the new behavior.
Published December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.