cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1124
Views
0
Helpful
2
Replies

How to check daylight saving within the UCCX script

eschippe
Cisco Employee
Cisco Employee

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)

2 Replies 2

Aaron Harrison
VIP Alumni
VIP Alumni

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

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

Thank Aaron, I will try this approach. :)

Ernst

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: