setting an assignment Service Level Agreement (SLA) to a specific time in Pega, while considering daylight saving time (DST) adjustments. My objective is to ensure that the SLA is set accurately, irrespective of whether DST is in effect.

Hello Pega Community,

I need assistance with setting an assignment Service Level Agreement (SLA) to a specific time in Pega, while considering daylight saving time (DST) adjustments. My objective is to ensure that the SLA is set accurately, irrespective of whether DST is in effect.

Scenario / Example:
Whenever a case is created, I need to move my case to a Wait shape. It should resume the flow at 9:30 AM CET on a specified future date. I should be able to set any future date, taking into account daylight saving time adjustments, to ensure the flow resumes accurately at 9:30 AM CET.

How to achieve this?Please suggest

Use Property based approach to set you goal and deadline time and set the date value based on your country.

@gasharma I am using this approach

FutureDate is date property that is =“20240704”
set waitdatetime =@addToDate(.FutureDate,0,9,30,0) but this sets datetime in GMT. How can I make it to set as CET ?

how to do it based on the country

@Sourabh use can use either of the below function

  1. @(Pega-RULES:DateTime).pxGetSpecifiedTimeOnDate(.StartDate, 9, 0, 0, “America/New_York”)

Note above that .StateDate is a DateTime

  1. Or use the function by calender rule where you use the correct country

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

More you can follow from here

@gasharmaI have tried approach one .It works .Thanks you :slight_smile: