summaryrefslogtreecommitdiffstats
path: root/hwclock/hwclock.c
diff options
context:
space:
mode:
Diffstat (limited to 'hwclock/hwclock.c')
-rw-r--r--hwclock/hwclock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hwclock/hwclock.c b/hwclock/hwclock.c
index 279b672f9..88fb8a073 100644
--- a/hwclock/hwclock.c
+++ b/hwclock/hwclock.c
@@ -224,8 +224,8 @@ hw_clock_is_utc(const bool utc, const bool local_opt,
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"));