You are not logged in.
Here's the situation:
The BIOS clock is correctly set.
I've done "hwclock --systohc --utc" during the installation process.
I've done "ln -s /usr/share/zoneinfo/Europe/Stockholm /etc/localtime"
Despite this whenever I boot, the time is two hours into the future. NTP corrects this for me over time, but it's still a weird behaviour that I'd like to get rid of.
Last edited by linduxed (2013-06-04 21:24:19)
Offline
What's the output of 'timedatectl'?
Offline
Local time: tis 2013-06-04 15:07:02 CEST
Universal time: tis 2013-06-04 13:07:02 UTC
Timezone: Europe/Stockholm (CEST, +0200)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: yes
Last DST change: DST began at
sön 2013-03-31 01:59:59 CET
sön 2013-03-31 03:00:00 CEST
Next DST change: DST ends (the clock jumps one hour backwards) at
sön 2013-10-27 02:59:59 CEST
sön 2013-10-27 02:00:00 CET
Offline
Change hardware clock from CEST to UTC.
There's a wiki article on time if you want to know why.
Offline
Change hardware clock from CEST to UTC.
There's a wiki article on time if you want to know why.
I think that's what 'hwclock --systohc --utc' does.
What's the output of 'cat /etc/adjtime'?
What's the output of 'timedatectl' right after boot, before NTP kicks in?
Offline
"cat /etc/adjtime"
0.000000 1370128152 0.000000
1370128152
UTC
"timedatectl" right after booting:
Local time: tis 2013-06-04 17:52:56 CEST
Universal time: tis 2013-06-04 15:52:56 UTC
Timezone: Europe/Stockholm (CEST, +0200)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: yes
Last DST change: DST began at
sön 2013-03-31 01:59:59 CET
sön 2013-03-31 03:00:00 CEST
Next DST change: DST ends (the clock jumps one hour backwards) at
sön 2013-10-27 02:59:59 CEST
sön 2013-10-27 02:00:00 CET
Last edited by linduxed (2013-06-04 13:54:01)
Offline
Reading through the "Time standard" section of the Time article on the wiki made me realize that mich41 is right, I should just set the hardware clock to UTC. It solved the problem.
Last edited by linduxed (2013-06-04 21:23:44)
Offline
I'm confused. Please tell me how exactly did you solve it, as your recently-updated adjtime says you're already using UTC.
Offline
I had done everything as instructed in the Installation Guide, which recommends configuring everything for UTC. My BIOS time however wasn't set to UTC time, it was set to the local time, which is UTC+2. I subtracted two hours from the BIOS clock (moved it from CEST to UTC) and then the time was displayed correctly when booted up.
Offline
You should have used "hwclock --systohc --utc" (after syncing to ntp or otherwise setting the correct system time). This provides initial creation of the /etc/adjtime file that handles clock drift.
Either that or stop driving your Delorian 88 MPH or faster... this has been known to cause time issues since 1984.
Offline
Ah, now I get it, although I don't understand why would you set it like this in the first place ;P
Offline