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>
or
.B \-\-adjust
options), as recorded in the adjtime file. If the adjtime file doesn't
-exist, the default is local time.
+exist, the default is UTC time.
.TP
.B \-\-noadjfile
else if (local_opt)
ret = FALSE; /* --localtime explicitly given */
else
- /* get info from adjtime file - default is local */
- ret = (adjtime.local_utc == UTC);
+ /* get info from adjtime file - default is UTC */
+ ret = (adjtime.local_utc != LOCAL);
if (debug)
printf(_("Assuming hardware clock is kept in %s time.\n"),
ret ? _("UTC") : _("local"));