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 in BusinessCalendar Library inconsistent



When using the adddays() function in a custom activity as shown below, if the input date is before daylight saving time and the targeted end date is after, the output of this function returns one day prior expected end date.

@addDays(InputDate, 8, false, "USDefault")

For Example:

@addDays("20160307", 8, false, "USDefault")  returns 20160314

Error Messages

Not Applicable

Steps to Reproduce

  1. Create an activity with a Property-Set that equals the result of the following function call: @addDays("20160307", 8, false, "USDefault")  returns 20160314
  2. Turn PRPC tracer on and run created activity.
  3. Review the results within the tracer viewer.

Root Cause

An issue in the custom application code or rules. The application was configured to set the propertypxRequestor.pyDisableTimeConversion to "true" which effects the timezone conversion of functions within the DateTimeUtils


Use addToDate().

Published May 1, 2016 - 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