Sunday, March 09, 2008 11:35 AM
Frederick.Chapleau
Adjust time, for Daylight Saving on Fedora 4,6 & 8 (!)
Today, I woke up, and it was one hour later than the normal. After looking at my servers, I just log on my firewalls and saw that they were not updated with the latest daylight timezone changes.
Steps I followed
1. Download the new timezones, updated. Check the latest file, now is tzdata2008a.tar.gz .
wget ftp://elsie.nci.nih.gov/pub/tzdata2008a.tar.gz
2. Untar it
tar -xzvf tzdata2008a.tar.gz
3. Unzic it (!), zic is the timezone compiler
zic -d zoneinfo northamerica
4. Go to the directory and copy the content to the Fedora Zone files
cd zoneinfo
cp -r * /usr/share/zoneinfo/
5. Now, you should be fine, to check it, type
zdump -v /etc/localtime | grep 2008
if the output looks like this
/etc/localtime Sun Mar 9 06:59:59 2008 UTC = Sun Mar 9 01:59:59 2008 EST isdst=0 gmtoff=-18000
/etc/localtime Sun Mar 9 07:00:00 2008 UTC = Sun Mar 9 03:00:00 2008 EDT isdst=1 gmtoff=-14400
/etc/localtime Sun Nov 2 05:59:59 2008 UTC = Sun Nov 2 01:59:59 2008 EDT isdst=1 gmtoff=-14400
/etc/localtime Sun Nov 2 06:00:00 2008 UTC = Sun Nov 2 01:00:00 2008 EST isdst=0 gmtoff=-18000
you are in business.
Some more tips
The timezone settings
/etc/sysconfig/clock contains the Timezone, and the system use utc settings. So if you want to change it check it out.
ZONE="America/Montreal"
UTC=false
ARC=false
The Hardware clock
After updating the time zone, maybe you want to update the server's time
rdate time-a.nist.gov
A complete list of timeservers can be found at
http://tf.nist.gov/service/time-servers.html
The hardware clock
After you updated the system time, maybe you want to update the Hardware time
hwclock --systohc
Filed under: Networking