[Eug-lug] Daylight Savings as of 2007

Garl Grigsby badd_karma at comcast.net
Thu Feb 22 13:25:28 PST 2007


> Revisiting this as time draws near...
>
> My servers here at the office aren't updated with the revised stuff... 
> however, my offsite webserver is....
>
> Using this URL/thread as a guide:
>
> http://www.linuxquestions.org/questions/showthread.php?t=518752
>
> I seems that one needs to regenerate a file called "EST5EDT" then copy 
> it into place, implying that it is generic.
>
> Can I just grab the one off the web server that is correct and copy it 
> to my local servers and just be done with this? \
Matthew,
    Just in case you never got this done, here is what I developed as a 
procedure for updating older Redhat 7.3 and 9.0 systems. So far, this 
has worked on all the systems I've tried.

Garl

Steps to update Time Zone data on older (redhat) systems.
NOTE: newer systems (like eglnx04) should be updated using up2date/yum

   1. cd /tmp
   2. mkdir tzupdate
   3. wget 'ftp://elsie.nci.nih.gov/pub/tz[cd]*.tar.gz'
   4. gzip -dc tzd*.tar.gz | tar xvf -
   5. gzip -dc tzc*.tar.gz | tar xvf -
   6. zic -d zoneinfo northamerica
   7. tar -cvf /usr/share/zoneinfo_backup.tar /usr/share/zoneinfo/
         1. This is just a backup in case something bad happens. This
            can be deleted when all is finished.
   8. cp -Rf zoneinfo/ /usr/share/zoneinfo/
   9. rm /etc/localtime
  10. ln -s  /usr/share/zoneinfo/PST8PDT /etc/localtime
  11. zdump -v /usr/share/zoneinfo/PST8PDT | grep 2007
  12. zdump -v /usr/share/zoneinfo/America/Los_Angeles | grep 2007
  13. zdump -v /etc/localtime | grep 2007


Make sure all three commands above report something like this with Mar 
11 and Nov 4 as the dates:

/usr/share/zoneinfo/PST8PDT  Sun Mar 11 09:59:59 2007 UTC = Sun Mar 11 
01:59:59 2007 PST isdst=0 gmtoff=-28800
/usr/share/zoneinfo/PST8PDT  Sun Mar 11 10:00:00 2007 UTC = Sun Mar 11 
03:00:00 2007 PDT isdst=1 gmtoff=-25200
/usr/share/zoneinfo/PST8PDT  Sun Nov  4 08:59:59 2007 UTC = Sun Nov  4 
01:59:59 2007 PDT isdst=1 gmtoff=-25200
/usr/share/zoneinfo/PST8PDT  Sun Nov  4 09:00:00 2007 UTC = Sun Nov  4 
01:00:00 2007 PST isdst=0 gmtoff=-28800

If they match, you're done.




More information about the EUGLUG mailing list