You are not logged in.

#1 2009-08-24 18:22:14

alleluia20
Member
Registered: 2009-04-13
Posts: 53

Since a few days ago, clock an hour backwards on reboot

Hello,

Since a few days ago (maybe because of the kernel upgrade? - package upgrade, not the version of the kernel, or because of the init scripts upgrade?) the clock goes an hour backwards on reboot (well, because I adjust it to the correct time, if I did not, maybe the clock would stay the same after reboot, I do not know). On /etc/rc.conf I have:

LOCALE="en_GB.utf8"
HARDWARECLOCK="local"
USEDIRECTISA="no"
TIMEZONE="Europe/London"

Writing the time to the hardware is OK, because hwclock --systohc gives no output text and, when shutting down, "writing time to hardware" ends with "OK".

Thank you.

Offline

#2 2009-08-25 00:01:36

csn
Member
Registered: 2009-02-28
Posts: 10

Re: Since a few days ago, clock an hour backwards on reboot

/etc/rc.sysinit checks for "localtime", not "local":

HWCLOCK_PARAMS="--hctosys"
if [ "$HARDWARECLOCK" = "UTC" ]; then
    HWCLOCK_PARAMS="$HWCLOCK_PARAMS --utc"
elif [ "$HARDWARECLOCK" = "localtime" ]; then
    HWCLOCK_PARAMS="$HWCLOCK_PARAMS --localtime"
else
    HWCLOCK_PARAMS=""
fi

Offline

#3 2009-08-25 01:15:34

arkham
Member
From: Stockholm
Registered: 2008-10-26
Posts: 516
Website

Re: Since a few days ago, clock an hour backwards on reboot

csn wrote:

/etc/rc.sysinit checks for "localtime", not "local":

HWCLOCK_PARAMS="--hctosys"
if [ "$HARDWARECLOCK" = "UTC" ]; then
    HWCLOCK_PARAMS="$HWCLOCK_PARAMS --utc"
elif [ "$HARDWARECLOCK" = "localtime" ]; then
    HWCLOCK_PARAMS="$HWCLOCK_PARAMS --localtime"
else
    HWCLOCK_PARAMS=""
fi

Nice, this definitely needs a bugreport.


"I'm Winston Wolfe. I solve problems."

~ Need moar games? [arch-games] ~ [aurcheck] AUR haz updates? ~

Offline

#4 2009-08-26 08:01:03

ChemBro
Member
Registered: 2008-10-22
Posts: 703

Re: Since a few days ago, clock an hour backwards on reboot

Had the same problem, "localtime" worked for me.

When did they changed that?

Offline

#5 2009-08-27 03:07:11

MartinZ
Member
From: Chiloé, Chile
Registered: 2005-06-10
Posts: 379

Re: Since a few days ago, clock an hour backwards on reboot

Thanks, localtime fixed the problem here.


All your base are belong to us

Offline

#6 2009-08-27 04:06:38

whacath
Member
Registered: 2009-05-26
Posts: 283

Re: Since a few days ago, clock an hour backwards on reboot

Yep same here, while i was at it i installed openntpd too.

Offline

#7 2009-08-27 07:52:33

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: Since a few days ago, clock an hour backwards on reboot

Had Arch installed (6 months?) entered localtime then.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#8 2009-08-27 09:39:32

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Since a few days ago, clock an hour backwards on reboot

whacath wrote:

i installed openntpd

Why? ntp is better.

openntpd is designed, and *maintained*, for openbsd *only*. I put this in the wiki.

Offline

#9 2009-08-28 13:21:49

Themaister
Member
From: Trondheim, Norway
Registered: 2008-07-21
Posts: 652
Website

Re: Since a few days ago, clock an hour backwards on reboot

I had same problem. I had "local" in rc.conf. Appearantly, the initscripts have changed to "localtime".

Offline

#10 2009-08-29 16:16:33

whacath
Member
Registered: 2009-05-26
Posts: 283

Re: Since a few days ago, clock an hour backwards on reboot

brebs wrote:
whacath wrote:

i installed openntpd

Why? ntp is better.

openntpd is designed, and *maintained*, for openbsd *only*. I put this in the wiki.

Well, When looking at the wiki, ntp seam to require more configuration then openntp. And i just want to sync time once in a while. Openntp seem to be more lightweight and do the job well enough.

And please try to keep in mind that whats better for you might be crap to others.

Offline

#11 2009-08-29 17:46:16

jmdennis
Member
Registered: 2009-03-21
Posts: 61

Re: Since a few days ago, clock an hour backwards on reboot

Mine was 7 hours off and this was after doing the tzdata update.  I am glad to see a way around this problem.

Offline

Board footer

Powered by FluxBB