[systemd-commits] src/timedate

Lennart Poettering lennart at kemper.freedesktop.org
Fri Nov 23 07:33:45 PST 2012


 src/timedate/timedatectl.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit bd5ce8e9fc10a593822344c098ccbe8c47fe34e9
Author: Lennart Poettering <lennart at poettering.net>
Date:   Fri Nov 23 16:33:39 2012 +0100

    timedatectl: show both current actual timezone name and UTC distance in TImezone field

diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c
index e17f631..d379bcc 100644
--- a/src/timedate/timedatectl.c
+++ b/src/timedate/timedatectl.c
@@ -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",



More information about the systemd-commits mailing list