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/TIMEZONEAt OpenServer 6.0.0 boot time init(M) calls/etc/tzto setup the system wide TZ environment variable.
At OpenServer 5.0.7 boot time init(M) calls/etc/bcheckrcto 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
HST10HDTTo 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.0Similarly, if you want to setup the 2007 rule for Pacific Standard Time (PST), you would use:
TZ=PST8PDT,M3.2.0,M11.1.0You 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.html2) Using the /etc/tz timezone setup script3) 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 shellsTA126600: "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?"