log.c: ISO 8601 date/time

After:
    INFO  2018-07-17T22:05:46.175 656 main:560: starting main loop
This commit is contained in:
Justin M. Keyes 2018-07-17 22:05:21 +02:00
parent 3258c6a2f4
commit ef86aad878

View File

@ -269,7 +269,7 @@ static bool v_do_log_to_file(FILE *log_file, int log_level,
return false;
}
char date_time[20];
if (strftime(date_time, sizeof(date_time), "%y%m%d.%H%M%S",
if (strftime(date_time, sizeof(date_time), "%Y-%m-%dT%H:%M:%S",
&local_time) == 0) {
return false;
}