Technical article 126603

Can I manually configure my SCO OpenServer system to handle the new US Daylight Saving Time rules due to come into effect in 2007?

OpenServer 6.0.0OpenServer 5.0.7

Written · Last revised

Problem

Is there a way that I can manually configure the Timezone on my system to handle the US Daylight Saving Time rule changes that are being coming in 2007?

Solution

The system wide Timezone setting is called TZ and for OpenServer 6.0.0 and 5.0.7 systems, it is defined in:

/etc/TIMEZONE
At OpenServer 6.0.0 boot time init(M) calls
/etc/tz

to setup the system wide TZ environment variable.

At OpenServer 5.0.7 boot time init(M) calls
/etc/bcheckrc

to setup the system wide TZ environment variable.

Individual users can configure their own Timezone by setting
the TZ environment variable within their login script (e.g.
$HOME/.profile).

Individual applications can also set this environment variable to make the Timezone consistent within an application.

Prior to 2007, all US time zones switched at 2:00 a.m. LST (local standard time) to 3:00 LDT (local daylight time) on the first Sunday in April, and again from 2:00 a.m. LDT to 1:00 LST on the last Sunday in October.

From 2007, all US time zones will switch at 2:00 a.m. LST (local standard time) to 3:00 LDT (local daylight time) on the second Sunday in March, and again from 2:00 a.m. LDT to 1:00 LST on the first Sunday in November.

This set of rules for switching to and from Daylight Saving Time is hardwired into the OpenServer Runtime libc for TZ environment variables of the form:

EST5EDT
CST6CDT
MST7MDT
PST8PDT
YST9YDT
HST10HDT

To manually configure your TZ environment variable for EST5EDT to switch to and from daylight saving time on the correct dates, you will need to set TZ as follows:

TZ=EST5EDT,M3.2.0,M11.1.0

Similarly, if you want to setup the 2007 rule for Pacific Standard Time (PST), you would use:

TZ=PST8PDT,M3.2.0,M11.1.0

You can change the system wide TZ environment variable, as root, in the following ways:

1) Using the ScoAdmin System Time Manager. For more details see:

http://osr507doc.xinuos.com/en/HANDBOOK/sstT.timezone.html
2) Using the /etc/tz timezone setup script

3) By manually editing the TZ variable in the file /etc/TIMEZONE

NOTE:     Manually changing your TZ variable before the first Sunday in
          November 2006 will result in an incorrect time being returned
          by applications, commands, utilities and shells

TA126600: "How can I prepare my OpenServer 5 systems for the upcoming US Daylight Saving Time rule changes?" TA126601: "How can I prepare my OpenServer 6 systems for the upcoming US Daylight Saving Time rule changes?" TA126602: "How can I prepare my UnixWare 7 systems for the upcoming US Daylight Saving Time rule changes?" TA126619: "My application, command or utility is reporting the time as being *ST when it should be *DT?"

From the Xinuos technical article database, record 126603. Reproduced with permission. The original is at www.sco.com/ta/126603, 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.