cli, plugins: factorize usage of iso8601 datetime format

Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>

Includes updates by Aleksander Morgado to fix coding style issues.
This commit is contained in:
Frederic Martinsons
2021-10-15 17:02:20 +02:00
committed by Aleksander Morgado
parent 0510e9aef8
commit 9d82d30978
16 changed files with 131 additions and 112 deletions

View File

@@ -603,7 +603,7 @@ mmcli_output_start_date (guint64 value)
{
/* Merge value and recent flag in a single item in human output */
if (selected_type == MMC_OUTPUT_TYPE_HUMAN) {
output_item_new_take_single (MMC_F_BEARER_STATS_START_DATE, mm_format_iso8601 (value));
output_item_new_take_single (MMC_F_BEARER_STATS_START_DATE, mm_new_iso8601_time_from_unix_time (value));
return;
}