This solution can be used, if a WinCC OA server and a WinCC OA UI is located in different timezones and a customer requirement is to display always the server time instead of the local client time.
Per default all the time informations are tranformed by the UI to the local time of the client (time of PC where UI is executed).
Timezone keys can be found here:
science.ksc.nasa.gov/software/winvn/userguide/3_1_4.htm
Example: Server is located in Timezone UTC + 7 ==> plus 7 hours to UTC zero time
Within the UI, e.g in the first loaded panel you need to define 2 function calls.
setenv("TZ","UTC-7"); //this will change the UI env variable TZ to UTC + 7 hours ==> be aware: UTC minus 7 hours is defined by UTC7 (!!!)
getCurrentTime(); //this is needed to change the time
How to change UI Time to a different timezone during runtime
- eivanovic
- Posts:78
- Joined: Wed Sep 03, 2014 2:35 pm