Support Article
@addTime utility function is working differently in 5.4 and 6.1
SA-3347
Summary
You observe the "@addTime" utility function is working differently in 5.4 and 6.1 env.
Error Messages
None
Steps to Reproduce
1. Run @addtime function with a createtime after business hours in 5.4 SP2 system
2. Run @addtime function with a createtime after business hours in 6.1 SP2 system
3. observe different result
Root Cause
The behavior changed in 6.x series to roll forward SLA times when a WO is created after hours. This is the updated intended behavior which may require an application change.
Resolution
The explanation for this behavior is as follows:
The behavior was identified to be logically incorrect in the 5.x processing of after hours cases which is corrected in the 6 series and beyond. Documentation was updated to assist in conveying this update.
https://pdn.pega.com/java-and-activities/how-businesscalendar-functions-adddays-and-addtime-treat-holidays-weekends-and-time-zones
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.