You are not logged in.

#1 2009-11-01 17:31:59

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

[SOLVED]Automatic DST -- again

Dear everyone,

It's Nov 1, which means that the issues about automatic daylight saving time adjustment are again relevant.

Actually, I have a quite general question: How exactly does the Linux kernel (in the Arch way, of course) handle the above-mentioned transition?

As far as I read on Novell's website (which is also mentioned in timezone archwiki), if HARDWARECLOCK is set to UTC, then the time adjustment will occur automatically, whether the system is running or not, when the DST began/ended. On the other hand, if HARDWARECLOCK=localtime, linux should not touch the time at all.

However, I have two Arch systems, out of which one (desktop) is up since September, and I turned on the other (laptop) in the morning of Nov 1. The desktop correctly subtracted one hour (without NTPD, because there were no logs about the time change hmm), while the laptop required openntpd to move the time back. Both systems are on localtime (it's a good question why, since there is no Windows smile ).

So, how should I understand this?

Thanks,
L.

Last edited by Leonid.I (2009-11-15 21:49:46)


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#2 2009-11-01 17:45:25

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [SOLVED]Automatic DST -- again

Hmm interesting, my desktop didn't update either. It too is localtime.

Of course, this means I'll have to reboot into Debian and let it's ntp stuff handle it. Unfortunately, I'll have to deal with that stupid file-system-was-last-mounted-in-the-future-please-fsck-manually error. How will Arch handle time traveling?


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2009-11-01 18:12:46

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [SOLVED]Automatic DST -- again

fsckd wrote:

Hmm interesting, my desktop didn't update either. It too is localtime.

Of course, this means I'll have to reboot into Debian and let it's ntp stuff handle it. Unfortunately, I'll have to deal with that stupid file-system-was-last-mounted-in-the-future-please-fsck-manually error. How will Arch handle time traveling?

Was your desktop working, when the time change occured (around 2.00am)? My laptop was not, and I guess that is the problem, but I need someone to confirm this, because I am not a pro in this stuff.

Regarding your question, your system should be fine, after the clock has been changed. The only thing, PLEASE DO NOT REPEAT MY MISTAKE, AND KEEP YOUR SYSTEM RUNNING FOR AT LEAST AN HOUR, BEFORE REBOOTING. Otherwise, you'll have exactly the problem you mentioned. I had to use the Arch Live CD mad to get the laptop operational again...

Why can't you use openntpd from Arch?

Last edited by Leonid.I (2009-11-01 18:14:49)


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#4 2009-11-01 18:37:49

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: [SOLVED]Automatic DST -- again

This was a test install and doesn't have everything I'd have in a normal install.

No, I did not have the system running at 2 a.m.  My understanding is, with hardwareclock set to localtime and in absence of any ntp setup, the time should remain the same provided the machine was not running at the point of change. The reason is, Arch has no idea if another system has already updated the time.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#5 2009-11-15 21:50:58

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [SOLVED]Automatic DST -- again

Yes, thanks, you reply made me do some research and now I understand the issue.


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

Board footer

Powered by FluxBB