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
Change timezone of UI
- Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Change timezone of UI
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
Hi Gertjan,
i got this tip from Dieter but it has no effect... I guess it is some linux only command
BR
Alex
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
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
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
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
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
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:
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: