Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

  1. Configure a new calendar and set the time zone to America/Halifax region.
  2. Set Saturday and Sunday as not a business day.
  3. 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

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.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us