addDays function incorrect for America/Halifax timezone calendar
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.
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.
A defect in Pegasystems’ code or rules. Using the business calendar's time zone to calculate the dateDiff caused the issue.
Published August 26, 2017 - Updated October 8, 2020
Was this useful?
0% found this useful
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.