From 4220a1832dd2afd3726b5d4aef4532a18f872380 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Fri, 29 Apr 2022 13:05:02 +0200 Subject: [PATCH] Use ISO8601 for log files --- src/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/log.c b/src/log.c index 752d5b65..296f20b5 100644 --- a/src/log.c +++ b/src/log.c @@ -196,7 +196,7 @@ log_msg(log_level_t level, const char* const area, const char* const msg) char* level_str = _log_string_from_level(level); - gchar* date_fmt = g_date_time_format(dt, "%d/%m/%Y %H:%M:%S"); + gchar* date_fmt = g_date_time_format_iso8601(dt); fprintf(logp, "%s: %s: %s: %s\n", date_fmt, area, level_str, msg); g_date_time_unref(dt);