chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix hwclock_apply_localtime_delta() to properly handle negative TZ offset
[elogind.git]
/
src
/
timedated.c
diff --git
a/src/timedated.c
b/src/timedated.c
index 55cc904f0cd236d9ea99e8bb9e0e0fe90f1bcb43..4abcf1af73df3a88f0a48b3383cfabd15077ee62 100644
(file)
--- a/
src/timedated.c
+++ b/
src/timedated.c
@@
-332,7
+332,7
@@
static DBusHandlerResult timedate_message_handler(
struct tm *tm;
/* 2. Teach kernel new timezone */
struct tm *tm;
/* 2. Teach kernel new timezone */
- hwclock_apply_localtime_delta();
+ hwclock_apply_localtime_delta(
NULL
);
/* 3. Sync RTC from system clock, with the new delta */
assert_se(clock_gettime(CLOCK_REALTIME, &ts) == 0);
/* 3. Sync RTC from system clock, with the new delta */
assert_se(clock_gettime(CLOCK_REALTIME, &ts) == 0);
@@
-382,7
+382,7
@@
static DBusHandlerResult timedate_message_handler(
/* 2. Teach kernel new timezone */
if (local_rtc)
/* 2. Teach kernel new timezone */
if (local_rtc)
- hwclock_apply_localtime_delta();
+ hwclock_apply_localtime_delta(
NULL
);
else
hwclock_reset_localtime_delta();
else
hwclock_reset_localtime_delta();