Fix month in logger

coverity_scan^2
David Cernat 8 years ago
parent a36c20eaae
commit 535731c018

@ -51,7 +51,7 @@ const char* getTime()
struct tm *tm = localtime(&t);
static char result[20];
sprintf(result, "%.4d-%.2d-%.2d %.2d:%.2d:%.2d",
1900 + tm->tm_year, tm->tm_mon, tm->tm_mday,
1900 + tm->tm_year, tm->tm_mon + 1, tm->tm_mday,
tm->tm_hour, tm->tm_min, tm->tm_sec);
return result;
}

Loading…
Cancel
Save