Support Article
addDays function incorrect for America/Halifax timezone calendar
SA-39793
Summary
The addDays function incorrectly considers Friday and Saturday as business days; whereas, the corresponding calendar was configured with Saturday and Sunday as not business days. The issue occurs when the time zone in the calendar rule is the America/Halifax region.
Error Messages
Not Applicable
Steps to Reproduce
- Configure a new calendar and set the time zone to America/Halifax region.
- Set Saturday and Sunday as not a business day.
- Use the BusinessCalendar library function addDays.
Root Cause
A defect in Pegasystems’ code or rules. Using the business calendar's time zone to calculate the dateDiff caused the issue.
Resolution
Apply HFix-21899.
Published August 26, 2017 - 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.