From: Lennart Poettering Date: Fri, 20 Jan 2023 15:52:39 +0000 (+0100) Subject: hostnamectl: show firmware date with date only, without time X-Git-Tag: v253-rc1~52^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F26126%2Fhead;p=thirdparty%2Fsystemd.git hostnamectl: show firmware date with date only, without time The source (usually DMI/SMBIOS) only has 24h granularity, hence don't show time as well, it's useless. --- diff --git a/src/hostname/hostnamectl.c b/src/hostname/hostnamectl.c index 51b2bde1f46..c77e2e8fd9a 100644 --- a/src/hostname/hostnamectl.c +++ b/src/hostname/hostnamectl.c @@ -244,7 +244,7 @@ static int print_status_info(StatusInfo *i) { if (timestamp_is_set(i->firmware_date)) { r = table_add_many(table, TABLE_FIELD, "Firmware Date", - TABLE_TIMESTAMP, i->firmware_date); + TABLE_TIMESTAMP_DATE, i->firmware_date); if (r < 0) return table_log_add_error(r); }