Skip to content

Commit

Permalink
ninjam server: fix date timestamps -- from 6d093782
Browse files Browse the repository at this point in the history
  • Loading branch information
Cockos Inc authored and Justin Frankel committed Oct 8, 2018
1 parent c366b9b commit 893a8b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ninjam/server/ninjamsrv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ void logText(const char *s, ...)
time_t tv;
time(&tv);
struct tm *t=localtime(&tv);
fprintf(g_logfp,"[%04d/%02d/%02d %02d:%02d:%02d] ",t->tm_year+1900,t->tm_mon,t->tm_mday,t->tm_hour,t->tm_min,t->tm_sec);
fprintf(g_logfp,"[%04d/%02d/%02d %02d:%02d:%02d] ",t->tm_year+1900,t->tm_mon+1,t->tm_mday,t->tm_hour,t->tm_min,t->tm_sec);
}


Expand Down

0 comments on commit 893a8b4

Please sign in to comment.