summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-11-23 16:33:39 +0100
committerLennart Poettering <lennart@poettering.net>2012-11-23 16:33:39 +0100
commitbd5ce8e9fc10a593822344c098ccbe8c47fe34e9 (patch)
treecf5674f00c06d5c79a909bb2faeb57024bd0b4f9 /src
parent2af32104c47dadf426f2e7697cd7382520476fc5 (diff)
timedatectl: show both current actual timezone name and UTC distance in TImezone field
Diffstat (limited to 'src')
-rw-r--r--src/timedate/timedatectl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c
index e17f631566..d379bccd7f 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",