chiark / gitweb /
timedatectl: show both current actual timezone name and UTC distance in TImezone...
[elogind.git] / src / timedate / timedatectl.c
index e17f631566e492864aff648b76dcf99cca1a6e65..d379bccd7f4707194a161ae8ede9eff585b3e09b 100644 (file)
@@ -145,10 +145,9 @@ static void print_status_info(StatusInfo *i) {
         }
 
         zero(tm);
-        assert_se(strftime(a, sizeof(a), "%z", localtime_r(&sec, &tm)) > 0);
+        assert_se(strftime(a, sizeof(a), "%Z, %z", localtime_r(&sec, &tm)) > 0);
         char_array_0(a);
-        printf("        Timezone: %s\n"
-               "      UTC offset: %s\n"
+        printf("        Timezone: %s (%s)\n"
                "     NTP enabled: %s\n"
                "NTP synchronized: %s\n"
                " RTC in local TZ: %s\n",