timedatectl: show both current actual timezone name and UTC distance in TImezone field
This commit is contained in:
parent
2af32104c4
commit
bd5ce8e9fc
|
@ -145,10 +145,9 @@ static void print_status_info(StatusInfo *i) {
|
||||||
}
|
}
|
||||||
|
|
||||||
zero(tm);
|
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);
|
char_array_0(a);
|
||||||
printf(" Timezone: %s\n"
|
printf(" Timezone: %s (%s)\n"
|
||||||
" UTC offset: %s\n"
|
|
||||||
" NTP enabled: %s\n"
|
" NTP enabled: %s\n"
|
||||||
"NTP synchronized: %s\n"
|
"NTP synchronized: %s\n"
|
||||||
" RTC in local TZ: %s\n",
|
" RTC in local TZ: %s\n",
|
||||||
|
|
Loading…
Reference in New Issue