LinHES Forums
http://forums.linhes.org/

Time off by 2 hours, every time I fix it, it breaks itself a
http://forums.linhes.org/viewtopic.php?f=5&t=15314
Page 1 of 1

Author:  ggulik [ Mon May 21, 2007 11:23 pm ]
Post subject:  Time off by 2 hours, every time I fix it, it breaks itself a

I recently upgraded to R5F1 and ever since I can't seem to get the clock fixed and have it stay fixed.

It seems that no matter what I do as soon as I restart ntpd it breaks again. I checked /etc/timezone and it has the correct US/Central.

I've re-run tzselect a couple times and same thing, it doesn't stay fixed.

I tried to manually set the hwclock to the correct time, then sync the hwclock to the system clock and then restart ntpd:

root@mythtv:/var/lib/ntp# date
Mon May 21 22:23:44 PDT 2007
root@mythtv:/var/lib/ntp# hwclock --set --date="5/22/07 00:24"
root@mythtv:/var/lib/ntp# hwclock --hctosys
root@mythtv:/var/lib/ntp# date
Tue May 22 00:24:13 PDT 2007
root@mythtv:/var/lib/ntp# /etc/init.d/ntp restart
Stopping NTP server: ntpd.
Starting NTP server: ntpd.
root@mythtv:/var/lib/ntp# date
Tue May 22 00:24:21 PDT 2007
root@mythtv:/var/lib/ntp# date
Tue May 22 00:24:24 PDT 2007
root@mythtv:/var/lib/ntp# date
Mon May 21 22:24:37 PDT 2007


The programming seems to get recorded ok but the entire program guide is also off by 2 hours. It's getting kinda annoying.

Author:  tjc [ Tue May 22, 2007 6:45 am ]
Post subject: 

Have you tried this? http://www.knoppmythwiki.org/index.php?page=ProgramGuideIsOff

Author:  ggulik [ Tue May 22, 2007 2:37 pm ]
Post subject:  Solved!

Ok, the problem was that according to the tzselect man page the command does not actually change the timezone. The correct command to run was:

# dpkg-reconfigure tzdata

It seems to be sticking now.

Author:  ggulik [ Tue May 22, 2007 2:39 pm ]
Post subject: 

Ooops! This only solved half my problem. The backend is now fixed but the same command does not seem to work on the frontend:

root@mythfe1:/home/greg# dpkg-reconfigure tzdata
dpkg-query: failed to open package info file `/var/lib/dpkg/status' for reading: No such file or directory
/usr/sbin/dpkg-reconfigure: tzdata is not installed

Author:  Girkers [ Tue May 22, 2007 3:56 pm ]
Post subject: 

This is just a stab in the dark, but have you checked your settings in Myth-Setup. You set the timezone in there as well and this maybe where the FE is getting the info from.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/