cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

759
Views
0
Helpful
2
Replies
eschippe
Cisco Employee

How to check daylight saving within the UCCX script

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

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

Create
Recognize Your Peers
Content for Community-Ad