North American DST Changes

From MythTV Official Wiki
Revision as of 23:27, 15 September 2012 by Llib (talk | contribs) (No all timestamps are UTC, add link)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Time.png Outdated: Starting with the 0.26 release, scheduled-program related timestamps are stored in UTC. This page needs review.


As most North American users know by now, the U.S. government has mandated that DST changes start earlier beginning in 2007.

Being that Myth is heavily dependent on having the correct time information, having the correct time is crucial. Here is how update your time:

mkdir tzinfo
cd tzinfo
tar zxf tzdata2007c.tar.gz
zic -d /tmp/zoneinfo northamerica
cd /tmp/zoneinfo
cp -r * /usr/share/zoneinfo

After performing the above commands, you should have new time zone info in /usr/share/zoneinfo. Next just run


to select your timezone. After setting your timezone, you may want to run


to sync with an NTP server (NOTE: this command does NOT set up ntpd for you, it's just a one-time sync).

Here is a little script that should do the trick (works on RH5.2 up ) Note not all FC distros include 'zic '


echo "----------------------------------"
echo " Time Zone Update "
echo " >>>> CURRENT TIME <<<<"

mkdir tzinfo
mkdir tzinfo/tmp
mkdir tzinfo/tmp/tzoneinfo

cd tzinfo
tar zxf tzdata2007c.tar.gz
zic -d tmp/zoneinfo northamerica
cd tmp/zoneinfo
cp -r * /usr/share/zoneinfo
cd  ../../..
# Update the local timezone file

mv /etc/localtime /etc/localtime.rh6.2
ln -s /usr/share/zoneinfo/America/New_York /etc/localtime

rm -rf tzinfo/*
rmdir  tzinfo/

echo " >>>> NEW TIME <<<<"

User Notes

  • Gentoo Users
I built my Gnetoo/Mythbox over a year ago (almost2) and forgot to update the timezone for the new US DST settings.
All my Schedule Times were off by an hour (like the 11:00 news showed up at 10:00)....
do the following (as root)
emerge --sync
emerge sys-libs/timezone-data
Check your clock and the Listings in myth
That's it


Time Zone Sources

Time Zone Sources FTP

General Daylight Time Info