From 4d2a94f1e6c2f54b4c686cb00eb1d3abbe8d6db7 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Thu, 12 Jan 2017 12:08:26 -0500 Subject: [PATCH] Port: Use portable format string for ISO 8601 dates MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The %F format string to reprensent ISO 8601 dates is specific to C99 and not available on all platforms, use basic %Y-%m-%d to get the same result. Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- plugins/text/pretty/print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/text/pretty/print.c b/plugins/text/pretty/print.c index 0545178ef..86c088dc6 100644 --- a/plugins/text/pretty/print.c +++ b/plugins/text/pretty/print.c @@ -224,7 +224,7 @@ void print_timestamp_wall(struct pretty_component *pretty, /* Print date and time */ res = strftime(timestr, sizeof(timestr), - "%F ", &tm); + "%Y-%m-%d ", &tm); if (!res) { // TODO: log instead fprintf(stderr, "[warning] Unable to print ascii time.\n"); -- 2.34.1