]> git.ipfire.org Git - thirdparty/util-linux.git/commit
hwclock: make RTC default to UTC time
authorDaniel Drake <dsd@laptop.org>
Mon, 21 Feb 2011 13:27:07 +0000 (13:27 +0000)
committerKarel Zak <kzak@redhat.com>
Mon, 21 Feb 2011 16:07:57 +0000 (17:07 +0100)
commit7894bf0f08740f75610990a2ba76af7a7cbce61e
tree32fc43c7a594549427c83af12a6e1c556b5fa61e
parent2ed7a5a3d79e3785215378f74501f87baf74a2f0
hwclock: make RTC default to UTC time

If /etc/adjtime doesn't specify UTC or LOCAL, rtcwake defaults to UTC
and hwclock defaults to LOCAL.

Switch hwclock to meet the behaviour of rtcwake (default=UTC), also
matching the kernel's CONFIG_RTC_HCTOSYS behaviour.

The user impact of this change should be minimal, as anyone who has run
"hwclock --systohc" before will have their UTC/LOCAL choice already
recorded in /etc/adjtime.

Signed-off-by: Daniel Drake <dsd@laptop.org>
hwclock/hwclock.8
hwclock/hwclock.c