mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 11:55:44 +03:00
timedate: actually reset system time with new timezone
Fix a bug introduced by 56b0ef2fc2
.
Closes CID#1436943.
This commit is contained in:
parent
4fcc033b54
commit
df49792e01
@ -771,7 +771,7 @@ static int method_set_local_rtc(sd_bus_message *m, void *userdata, sd_bus_error
|
||||
log_debug_errno(r, "Failed to get hardware clock, ignoring: %m");
|
||||
else {
|
||||
/* And set the system clock with this */
|
||||
mktime_or_timegm(&tm, !c->local_rtc);
|
||||
ts.tv_sec = mktime_or_timegm(&tm, !c->local_rtc);
|
||||
|
||||
if (clock_settime(CLOCK_REALTIME, &ts) < 0)
|
||||
log_debug_errno(errno, "Failed to update system clock, ignoring: %m");
|
||||
|
Loading…
Reference in New Issue
Block a user