mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-24 05:03:17 -05:00
fix bug #107442 - time stamp in log off. Use localtime vs gmtime
This commit is contained in:
parent
fd70a618d6
commit
cd59a2f1dd
@ -121,7 +121,7 @@ void err_log(int level, unsigned int cat, char *fmt, ...)
|
||||
switch(err_logdestination) {
|
||||
case LOGDEST_LOGFILE:
|
||||
tt_now=time(NULL);
|
||||
gmtime_r(&tt_now,&tm_now);
|
||||
localtime_r(&tt_now,&tm_now);
|
||||
strftime(timebuf,sizeof(timebuf),"%F %T",&tm_now);
|
||||
fprintf(err_file,"%s: %s",timebuf,errbuf);
|
||||
if(!level) fprintf(err_file,"%s: Aborting\n",timebuf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user