chiark / gitweb /
clients: unify how we invoke getopt_long()
[elogind.git] / src / timedate / timedated.c
index 9858f5694c79a329c9a921daceebd7d88f710744..f5d2201cea6fb31687fa26da222f3ebd178e0d95 100644 (file)
@@ -248,9 +248,6 @@ static char** get_ntp_services(void) {
                             "/run/systemd/ntp-units.d",
                             "/usr/local/lib/systemd/ntp-units.d",
                             "/usr/lib/systemd/ntp-units.d",
-#ifdef HAVE_SPLIT_USR
-                            "/lib/systemd/ntp-units.d",
-#endif
                             NULL);
         if (k < 0)
                 return NULL;
@@ -477,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)