mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 08:56:29 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user