Problem
The time of my server shows GMT even though it is currently BST.
My /etc/TIMEZONE states:TZ='GMT0'
export TZHow can I correct this? Solution
1. Set the TIMEZONE to the correct format for UK GMT/BST
TimeZone in /etc/TIMEZONE with:TZ='GMT0BST,M3.5.0/1,M10.5.0/2'
export TZAn alternative method is to use "scoadmin" with:
# scoadmin System Time ManagerTime -> Change TimezoneThe entry should be as:Geographical area: OtherTimezone: GMT0BST,M3.5.0/1,M10.5.0/2Daylight savings time: No automatic DST for this zone
Any changes will not be reflected until you have logged back out again.
2. Now, set the time correctly with either:# asktimeor to use the Network Time Protocol and configure it as detailed in:
TA#111921, "How do I configure NTP to synchronize correctly?"
3. To ensure your server's real time clock is also set to
the current time run:# setclk -r4. Running "date" should now return the date/time
correctly and show the correct GMT/BST notation.Running "setclock" should also now show that the server's real time clock is also set to the correct current time.
NOTES: It is always advisable to ensure that the server is
patched to the latest patch levels for OpenServer6 from:http://www.sco.com/support/update/download/product.php?pfid=12&prid=20If you are not then it is recommended to reboot your server at your earliest convenience to ensure these changes take place.
See also
TA#126936, "How can I test the DST time switch to see that it works correctly on my OpenServer 6.0.0 server?"
TA#126937, "How does my OpenServer 6 system handle time and switching to/from Daylight Saving Time?"