Change timezone of UI

Discussion about recent product features & solutions!
6 posts • Page 1 of 1
adaneau
Posts:310
Joined: Tue Feb 21, 2012 9:49 am

Change timezone of UI

Post by adaneau »

Hi all,

I'm working at the moment on a multiple timezone application and I would like that all my clocks / alarms are using the server timezone and not the different UIs timezone.

This is quite easy to achieve with ULC UX (timezone parameter) however I have no clues how to do it for UI (I am running on windows). I am obviously looking for some option as I don't want to use any infinite loop converting my clock or any table loop converting my alarms timestamps.

Does someone have an idea for me?

Thanks

Alexandre

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: Change timezone of UI

Post by Gertjan van Schijndel »

You could try it with the 'TZ' environment variable.

adaneau
Posts:310
Joined: Tue Feb 21, 2012 9:49 am

Re: Change timezone of UI

Post by adaneau »

Hi Gertjan,

i got this tip from Dieter but it has no effect... I guess it is some linux only command :(

BR
Alex

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Change timezone of UI

Post by leoknipp »

In Windows maybe you have to use a different string for setting the timezone compared to Linux.
The setenv function should also work in Windoiws in WinCC OA.

At the code for the HTTP-server a comment is written that on Windows the timezone string needs to exaclty 3 characters long.

Can you please try it again.

Best Regards
Leopold Knipp
Senior Support Specialist

adaneau
Posts:310
Joined: Tue Feb 21, 2012 9:49 am

Re: Change timezone of UI

Post by adaneau »

Hi Leo,

I actually tried this syntax from Http but still unsuccessful.

I also tried this documentation :

https://science.ksc.nasa.gov/software/w ... /3_1_4.htm

Still nothing.

I wonder if it is possible to impact the UI live? If setenv can be called in UI during RT? I tried to set and restart but not good neither. I will try to do it at login before displaying clock.

Thanks for help

adaneau
Posts:310
Joined: Tue Feb 21, 2012 9:49 am

Re: Change timezone of UI

Post by adaneau »

Ok I succeed to make it works.

I need to make first the setenv, following windows standard sytax:

https://msdn.microsoft.com/en-us/librar ... s.60).aspx

https://science.ksc.nasa.gov/software/w ... /3_1_4.htm


And THEN do a getCurrentTime() to refresh all my clocks... i dont know if it's a bug or normal behavior :laugh:

6 posts • Page 1 of 1