]> err.no Git - systemd/commit
rtc in localtime: use settimeofday(NULL, tz) instead of hwclock(8)
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 24 May 2011 18:23:07 +0000 (20:23 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 24 May 2011 18:23:07 +0000 (20:23 +0200)
commit7948c4dfbea73ac21250b588089039aa17a90386
treeaffd1ba0a14936f4c19452fd1219c8c65dc137fc
parent359306dfe552228716b8da5cf989da8d0e23a297
rtc in localtime: use settimeofday(NULL, tz) instead of hwclock(8)

We check for LOCAL in /etc/adjtime and if needed, ask the kernel to
apply the timezone delta to the system clock.

The very first call of settimeofday() without a time, but a timezone
warps the system clock, so that it properly runs in UTC.
Makefile.am
src/main.c
src/util.c
src/util.h
units/hwclock-load.service [deleted file]