You are not logged in.

#1 2011-08-11 11:53:20

Google
Member
From: Mountain View, California
Registered: 2010-05-31
Posts: 484
Website

(SOLVED) system time refuses to change

My hwclock is correct. However, --systohc doesn't work. I also tried ntp and openntpd and they don't help any either.

Has anyone had a super-stubborn system clock?

I have tried UTC, localtime and the whole shebang. I can make the system clock change if I alter my location but I don't want to spoof my location just to fix my time. My location is set correctly but my system clock is about 14 hours in the future.

Last edited by Google (2011-08-12 01:17:14)

Offline

#2 2011-08-11 12:06:14

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: (SOLVED) system time refuses to change

Please post the output of 'hwclock --debug' (run as root).

Offline

#3 2011-08-11 12:07:20

Google
Member
From: Mountain View, California
Registered: 2010-05-31
Posts: 484
Website

Re: (SOLVED) system time refuses to change

hwclock from util-linux 2.19.1
Using /dev interface to clock.
Last drift adjustment done at 1313128033 seconds after 1969
Last calibration done at 1313128033 seconds after 1969
Hardware clock is on local time
Assuming hardware clock is kept in local time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2011/08/12 15:07:28
Hw clock time : 2011/08/12 15:07:28 = 1313129248 seconds since 1969
Fri 12 Aug 2011 03:07:28 PM KST  -0.063131 seconds

Offline

#4 2011-08-11 15:25:33

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: (SOLVED) system time refuses to change

I suggest setting the hardwareclock to UTC. If you still have problems, set it to UTC both in /etc/rc.conf and in /var/lib/hwclock/adtime (third line sheald read "UTC"). Make sure your timezone is set correctly, and then you ntpd (not openntpd) to synchronize the time. You might need to pass ntpd the right option to force a timeset, in case the gap is to large.

Offline

#5 2011-08-12 01:17:40

Google
Member
From: Mountain View, California
Registered: 2010-05-31
Posts: 484
Website

Re: (SOLVED) system time refuses to change

Thanks--

Setting the hwclock to UTC and manually setting the clock-- and then running ntp did the trick.

Offline

Board footer

Powered by FluxBB