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

Pega does not consider Calendar when using AddTime function



The Pega application does not consider the Calendar when using the AddTime function in Batch Requestor Context through an agent.

The logic to calculate the Goal and Deadline time is as below:


Error Messages

Not Applicable

Steps to Reproduce

  1. Configure a workflow with an assignment where the SLA proceeds the case. In the Batch Requestor Context (SLA execution context), the platform determines the Goal and Deadline time.
  2. Use the AddTime() function to calculate the Goal and Deadline time.

Root Cause

The AddTime function does not work correctly when it runs in the Batch Requestor Context (through an agent).
This works in the Browser Requestor Context when the browser request and the calendar are both in the 'Australia/Sydney' time zone. 
The AddTime function does not work in the agent because, the agents run in the Batch Requestor context and the default locale is set to JVM locale (since no operator is associated with it), which is 'ETC/UTC' in this system.


Perform the following local-change:
  1. Change the Calendar in the web node.
  2. Restart the nodes to reflect the changes.

Published July 18, 2020 - Updated December 2, 2021

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