Hello,
after setting my parallel installation of Windows 7 to use UTC instead of local time, because I wanted to get rid of the time error, now Linux gets the time wrong from the hwclock.
The RTC has ever been in UTC.
As I write this it is 22:17 UTC or 00:17 in my time zone (+2).
Everytime I reboot Linux (without starting Windows in between) 2 hours will be substracted. To show this I set the time with “ntpd -qg” and wrote it to the RTC with “hwclock --systohc”. My timezone is set with:
/etc/localtime -> ../usr/share/zoneinfo/Europe/Budapest
After rebooting I get the following output from “timedatectl” and “hwclock --debug”
Local time: Tue 2015-06-23 22:17:14 CEST
Universal time: Tue 2015-06-23 20:17:14 UTC
RTC time: Tue 2015-06-23 22:17:14
Timezone: Europe/Budapest (CEST, +0200)
NTP enabled: no
NTP synchronized: no
RTC in local TZ: no
DST active: yes
Last DST change: DST began at
Sun 2015-03-29 01:59:59 CET
Sun 2015-03-29 03:00:00 CEST
Next DST change: DST ends (the clock jumps one hour backwards) at
Sun 2015-10-25 02:59:59 CEST
Sun 2015-10-25 02:00:00 CET
hwclock from util-linux 2.25.1
Using the /dev interface to the clock.
Last drift adjustment done at 1435096061 seconds after 1969
Last calibration done at 1435096061 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick
Time read from Hardware Clock: 2015/06/23 22:15:54
Hw clock time : 2015/06/23 22:15:54 = 1435097754 seconds since 1969
Wed Jun 24 00:15:54 2015 -0.922492 seconds
As you can see, the hwclock is right, but the system time is not.
Do you know how this can happen?