Fix month in logger

This commit is contained in:
David Cernat 2016-08-18 18:38:24 +03:00
parent a36c20eaae
commit 535731c018

View file

@ -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;
}