diff options
author | Kay Sievers <kay@vrfy.org> | 2013-10-31 02:26:07 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-10-31 02:33:23 +0100 |
commit | 2f6a59070559786428d9eaf199ae3d61772b2225 (patch) | |
tree | e0980c4f781815a9d079b8afffbbc12d0c5ca716 /src/timedate/timedated.c | |
parent | 04d39279245834494baccfdb9349db8bf80abd13 (diff) |
timedatectl: get time values from the service instead of the client
This allow querying the RTC time from the unprivileged timedatectl.
Diffstat (limited to 'src/timedate/timedated.c')
-rw-r--r-- | src/timedate/timedated.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c index 9858f5694c..62d79e2ebb 100644 --- a/src/timedate/timedated.c +++ b/src/timedate/timedated.c @@ -477,7 +477,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) |