mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07: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:
parent
3258c6a2f4
commit
ef86aad878
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user