diff options
author | Luca Boccassi <luca.boccassi@microsoft.com> | 2020-06-19 12:24:09 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@microsoft.com> | 2020-08-19 16:30:13 +0200 |
commit | 7b3eb5c97ec835100b2974dae035004d07b6d60c (patch) | |
tree | 7c0330b87f962131cf05f934540092af73f74a34 /src/shared/format-table.c | |
parent | homed: default to "btrfs" as fs type in the LUKS backend (diff) | |
download | systemd-7b3eb5c97ec835100b2974dae035004d07b6d60c.tar.xz systemd-7b3eb5c97ec835100b2974dae035004d07b6d60c.zip |
basic/time-util: add function to format timestamps with different styles
Instead of a multiple fixed format helper functions, add an enum and
a single helper, so that it's easier to extend in the future.
Diffstat (limited to 'src/shared/format-table.c')
-rw-r--r-- | src/shared/format-table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/format-table.c b/src/shared/format-table.c index 87ef5c3f00..7e876295ff 100644 --- a/src/shared/format-table.c +++ b/src/shared/format-table.c @@ -1335,7 +1335,7 @@ static const char *table_data_format(Table *t, TableData *d, bool avoid_uppercas if (d->type == TABLE_TIMESTAMP) ret = format_timestamp(p, FORMAT_TIMESTAMP_MAX, d->timestamp); else if (d->type == TABLE_TIMESTAMP_UTC) - ret = format_timestamp_utc(p, FORMAT_TIMESTAMP_MAX, d->timestamp); + ret = format_timestamp_style(p, FORMAT_TIMESTAMP_MAX, d->timestamp, TIMESTAMP_UTC); else ret = format_timestamp_relative(p, FORMAT_TIMESTAMP_MAX, d->timestamp); if (!ret) |