Support Article

SLA Time does not retrieve the correct time zone



After modifying the Daylight savings time, the SLA is executed one hour before the required time.

Error Messages

Not Applicable

Steps to Reproduce

Create a data transform to calculate the SLA where the function used, obtains the current date and SLA as part of the Steps 1.2 and 1.3 (as below).

@BusinessCalendar.addTime(Param.CurrentDate,0,23,59,59,false,"US Central")

The Standard Time zone mentioned in the Calendar  instance is America/Chicago.

Root Cause

While converting the current date using the FormatDateTime function, the Time zone was not considered as the output. Therefore, the Daylight savings time was not regarded in the addTime function.


Perform the following local-change while setting the current date:

Add 'z'  in the FormatDateTime function such that the CST  time zone is considered in the addTime function.



Published December 3, 2018 — Updated January 11, 2019

Have a question? Get answers now.

Visit the Pega Support Community to ask questions, engage in discussions, and help others.