projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9b40cc
)
hostnamectl: show firmware date with date only, without time
author
Lennart Poettering
<lennart@poettering.net>
Fri, 20 Jan 2023 15:52:39 +0000
(16:52 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 20 Jan 2023 16:48:28 +0000
(17:48 +0100)
The source (usually DMI/SMBIOS) only has 24h granularity, hence don't
show time as well, it's useless.
src/hostname/hostnamectl.c
patch
|
blob
|
history
diff --git
a/src/hostname/hostnamectl.c
b/src/hostname/hostnamectl.c
index 51b2bde1f46fad45569cca2638e2050c1ef207f0..c77e2e8fd9a2d84d9a0fd4291a078dd47b02a704 100644
(file)
--- 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);
}