Quote:
Originally Posted by The GNUinator
This didn't work for me. Obtained tzdata2007c.tar.gz from elsie.
...
Would someone in this forum get "tzdata2007c.tar.gz" from elsie and see if it works for you?
|
I did the following:
mkdir tz
cd tz
wget 'ftp://elsie.nci.nih.gov/pub/tz*.tar.gz'
gzip -dc tzcode*.tar.gz | tar -xf -
gzip -dc tzdata*.tar.gz | tar -xf -
# Edit Makefile to use "US/Pacific" and changed from nawk to awk.
make
make install
# This will install to /usr/local/{etc,bin} by default as
# specified in the Makefile.
# Prior to this, zdump did not exist on my old slackware.
# I can now run 'zdump -v /etc/localtime | grep 2007'.
zdump -v /etc/localtime | grep 2007
/etc/localtime Sun Apr 1 09:59:59 2007 UTC = Sun Apr 1 01:59:59 2007 PST isdst=0 gmtoff=-28800
/etc/localtime Sun Apr 1 10:00:00 2007 UTC = Sun Apr 1 03:00:00 2007 PDT isdst=1 gmtoff=-25200
/etc/localtime Sun Oct 28 08:59:59 2007 UTC = Sun Oct 28 01:59:59 2007 PDT isdst=1 gmtoff=-25200
/etc/localtime Sun Oct 28 09:00:00 2007 UTC = Sun Oct 28 01:00:00 2007 PST isdst=0 gmtoff=-28800
# Note that this is how the
incorrect listing will look.
# Substitute PST & PDT with your own time zone, but the dates when ?ST & ?DT change will be the same.
mv /etc/localtime /etc/localtime-original
# Choose whatever timezone you are in and soft link it to /etc/localtime. Use the localtime-original above as reference.
ln -s /usr/local/etc/zoneinfo/US/Pacific /etc/localtime
# At this point, your zdump should look like the following.
zdump -v /etc/localtime | grep 2007
/etc/localtime Sun Mar 11 09:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 PST isdst=0 gmtoff=-28800
/etc/localtime Sun Mar 11 10:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 PDT isdst=1 gmtoff=-25200
/etc/localtime Sun Nov 4 08:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 PDT isdst=1 gmtoff=-25200
/etc/localtime Sun Nov 4 09:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 PST isdst=0 gmtoff=-28800
# Run 'date' to verify your local time is now correct.
date
Sun Mar 11 11:32:41 PDT 2007