04-10-2015 01:26 AM - edited 03-14-2019 02:39 PM
Hi, customer has CC based in the UK and a number of remote sites in different time zones.
Scenario: US daylight saving changed.
Q: Is there a way to check from within the UCCX script, which runs in the UK, if the US daylight has been changed in order to make the approriate routing decision?
Hope you can help,
Ernst Schippers (NCE)
04-10-2015 01:55 AM
Hi
I was working with TZs earlier this month. New to me... However in CCX there is a type of variable 'TimeZone'. You can set up one of those, set it to the timezone you are interested in, and then get the current time there like so (where tzVariable is a timezone var):
T[T[now], tzVariable]
That will return a datetime.
With that tzvariable, you can also do:
tzVariable.getDSTSavings()
To get the offset from UTC in DST, in ms.
Also
tzVariable.inDaylightTime(datetime)
Can be used to check whether a particular time is in DST or not, for example;
tzVariable.inDaylightTime(T[now])
Hope that helps
Aaron
04-10-2015 02:44 AM
Thank Aaron, I will try this approach. :)
Ernst
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide