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

Day light saving issue



The ‘addToDate’ function is not taking Daylight Saving Time (DST) into account.

Error Messages

No error messages.

Steps to Reproduce

Not applicable.

Root Cause

The function AddToDate has no inherent understanding of daylight saving hence when the time changes the time is wrong by +1 hour or -1 hour.


Replace AddToDate with the function below:

addTime(startDateTime, days, hours, minutes, seconds, useBusinessCalendar, calendarName)

The calendar provided to the function needs to DST aware.


Published January 31, 2016 - Updated October 8, 2020

Was this useful?

100% 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