You are not logged in.

#1 2009-09-25 01:58:50

jmetal88
Member
Registered: 2007-12-09
Posts: 85

Time zone/hardware clock problem

I have the following line in my rc.conf:

HARDWARECLOCK="localtime"

However, Archlinux is still subtracting 5 hours from my hardware clock time, giving me the incorrect time.  Sometimes openntpd corrects this, but sometimes it doesn't.  How do I stop Arch from subtracting time when no compensation for the time zone is needed?

Offline

#2 2009-09-25 10:33:30

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: Time zone/hardware clock problem

Try deleting /var/lib/hwclock/adjtime and then rebooting.

The answer was found here, http://bbs.archlinux.org/viewtopic.php?id=79543.

Offline

#3 2009-09-25 13:07:17

Raffles10
Member
From: London, UK
Registered: 2009-05-09
Posts: 115

Re: Time zone/hardware clock problem

You can set your hardware clock manually:

hwclock --set --date="9/25/09 14:05:00"

And set your system time to match hardware clock:

hwclock --hctosys

Offline

#4 2009-09-25 15:49:14

jmetal88
Member
Registered: 2007-12-09
Posts: 85

Re: Time zone/hardware clock problem

thisoldman wrote:

Try deleting /var/lib/hwclock/adjtime and then rebooting.

The answer was found here, http://bbs.archlinux.org/viewtopic.php?id=79543.

Sorry, just tried it and it didn't work.  The time is still 5 hours behind.

Offline

#5 2009-09-25 15:51:20

jmetal88
Member
Registered: 2007-12-09
Posts: 85

Re: Time zone/hardware clock problem

Raffles10 wrote:

You can set your hardware clock manually:

hwclock --set --date="9/25/09 14:05:00"

And set your system time to match hardware clock:

hwclock --hctosys

I expected that last one to work, but for some reason it didn't.  I wonder if Arch set my hwclock to UTC while I wasn't looking?  I checked it in the bios right before I posted this topic, but I suppose it could have done something since then.  Time for another reboot I guess.

Offline

#6 2009-09-25 15:54:39

jmetal88
Member
Registered: 2007-12-09
Posts: 85

Re: Time zone/hardware clock problem

Well, that was weird, sometime between the time I posted this topic and now, Arch reset my hardware clock to UTC.  I have no idea why, I didn't ask it to, but at least it is accepting that my hardware clock is local time now.  Thanks guys!

EDIT: Actually, that's not correct, it didn't reset my hardware clock to UTC, it just set it to match the incorrect system time.  Sorry I'm kind of tired or I would have caught that the first time.

Last edited by jmetal88 (2009-09-25 15:58:00)

Offline

#7 2009-09-26 00:11:35

rok3
Member
From: NJ, USA
Registered: 2008-03-09
Posts: 44

Re: Time zone/hardware clock problem

I actually have the same issue.  Neither solution worked here but I don't use my comp clock much so I've been ignoring it until I have time to look into it.

Offline

Board footer

Powered by FluxBB