Doug Crompton on 6 Mar 2007 05:01:07 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Daylight Savings Time


I found the following on a search. Did it on my SUSE 7.3 system and it
worked - substituting New_York for Montreal ...

Takes about 5 minutes to do.

Doug
-----------------------------------------------------------------------
Let's see if I can make this a little simple. I have just finished
updating my Red Hat 9 servers, Fedora 6 notebook and all my Windoze
machines.

Let's start off by clearing up some misconceptions. NTP only sets the UTC
time on the computer, the timezone files will display this time in the
correct time zone for your region.

Newer, supported distros will have glibc updates ready for the timezone
change. Un-supported distros as in Red Hat 9 need a little work.

On my servers, I used

#zdump -v /etc/localtime | grep 2007

to verify the 2007 timezone settings. Mine showed April 1st as the date of
change... and not March 11.

I went to http://www.twinsun.com/tz/tz-link.htm and downloaded
tzdata2006p.tar.gz. I un-tared this file into a temp directory and
executed

# zic -d /tmp/zoneinfo northamerica

to compile the timezone data files. I then copied the EST5EDT file to
/usr/share/zoneinfo/ directory and America/Montreal file into
/usr/share/zoneinfo/America directory. Doing a quick test will make sure
these new files are good.

# zdump -v /usr/share/zoneinfo/EST5EDT | grep 2007
# zdump -v /usr/share/zoneinfo/America/Montreal | grep 2007

lastly I linked the localtime file

*****************************************************
I found the following line confusing and mispelled. I
did not execute this line at all and the following
zdump of localtime worked.
*****************************************************

# ln -fs /etc/localtime /usr/share/zoninfo/EST5EDT


# zdump -v /etc/localtime | grep 2007

the expected output should look a little like thi

/etc/localtime Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 EST
isdst=0 gmtoff=-18000
/etc/localtime Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 EDT
isdst=1 gmtoff=-14400
/etc/localtime Sun Nov 4 05:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 EDT
isdst=1 gmtoff=-14400
/etc/localtime Sun Nov 4 06:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 EST
isdst=0 gmtoff=-18000



___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug