chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bus: update bus_map_all_properties()
[elogind.git]
/
src
/
timedate
/
timedated.c
diff --git
a/src/timedate/timedated.c
b/src/timedate/timedated.c
index 3d450ca3fabdc8dbe3a62bcd5f0c544d72fe75c2..f5d2201cea6fb31687fa26da222f3ebd178e0d95 100644
(file)
--- a/
src/timedate/timedated.c
+++ b/
src/timedate/timedated.c
@@
-474,7
+474,7
@@
static int property_get_rtc_time(
sd_bus_error_set_errnof(error, -r, "Failed to read RTC: %s", strerror(-r));
return r;
} else
- t = (usec_t)
mktime
(&tm) * USEC_PER_SEC;
+ t = (usec_t)
timegm
(&tm) * USEC_PER_SEC;
r = sd_bus_message_append(reply, "t", t);
if (r < 0)