From: Michael Jeanson Date: Thu, 12 Jan 2017 17:08:26 +0000 (-0500) Subject: Port: Use portable format string for ISO 8601 dates X-Git-Tag: v2.0.0-pre1~85 X-Git-Url: https://git.efficios.com/?a=commitdiff_plain;h=4d2a94f1e6c2f54b4c686cb00eb1d3abbe8d6db7;p=babeltrace.git Port: Use portable format string for ISO 8601 dates 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 --- diff --git a/plugins/text/pretty/print.c b/plugins/text/pretty/print.c index 0545178e..86c088dc 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");