Technical article 127029

OSR6:The TimeZone is BST but my server is in GMT. Mine is a UK based server. How can I resolve this?

OpenServer 6.0.0

Written · Last revised

Problem

The time of my server shows GMT even though it is currently BST.

My /etc/TIMEZONE states:
TZ='GMT0'
export TZ
How 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 TZ

An alternative method is to use "scoadmin" with:

# scoadmin System Time Manager
Time -> Change Timezone
The entry should be as:
Geographical area: Other
Timezone: GMT0BST,M3.5.0/1,M10.5.0/2

Daylight 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:
# asktime

or 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 -r
4.  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=20

If 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?"

From the Xinuos technical article database, record 127029. Reproduced with permission. The original is at www.sco.com/ta/127029, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.