chiark / gitweb /
localectl: always print error message when an operation fails
[elogind.git] / src / timedate / timedatectl.c
index 30054b6629fa87d11cb9cb12a35de1a749387212..7054a02bcb1203bb19611b605b4cf5ae3a892b9f 100644 (file)
 #include "pager.h"
 #include "time-dst.h"
 
-static bool arg_adjust_system_clock = false;
 static bool arg_no_pager = false;
-static BusTransport arg_transport = BUS_TRANSPORT_LOCAL;
 static bool arg_ask_password = true;
+static BusTransport arg_transport = BUS_TRANSPORT_LOCAL;
 static char *arg_host = NULL;
+static bool arg_adjust_system_clock = false;
 
 static void pager_open_if_enabled(void) {
 
@@ -126,7 +126,7 @@ static void print_status_info(StatusInfo *i) {
 
                 rtc_sec = (time_t)(i->rtc_time / USEC_PER_SEC);
                 zero(tm);
-                assert_se(strftime(a, sizeof(a), "%a %Y-%m-%d %H:%M:%S %Z", gmtime_r(&rtc_sec, &tm)) > 0);
+                assert_se(strftime(a, sizeof(a), "%a %Y-%m-%d %H:%M:%S", gmtime_r(&rtc_sec, &tm)) > 0);
                 char_array_0(a);
                 printf("        RTC time: %s\n", a);
         } else