Home | Linux



In the US, Daylight Savings Time is coming earlier starting in 2007, and not all Linux distributions have updated the timezone information file to reflect this change. Here are the quick and dirty steps to updating your server if a regular update (via yum, apt, etc.) is not available:

su -
cd ~
mkdir tzdata
cd tzdata
wget ftp://elsie.nci.nih.gov/pub/tzdata2007c.tar.gz
tar xzf tzdata2007c.tar.gz
zic -d zoneinfo northamerica
cd zoneinfo
cp -r * /usr/share/zoneinfo/
cd ~
rm -rf tzdata

You should see this when you are done:

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

 

If you find this page useful, please consider making a secure donation:

Creative Commons Attribution Share-Alike License logo
This work is copyright © 2002-2010 Bruce Timberlake and is licensed under a Creative Commons Attribution Share-Alike License. It may be copied, modified, and distributed freely as long as it attributes the original author by name ("Bruce Timberlake") and URL ("http://brucetimberlake.com/") and maintains the original license. See the license for details.