mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-28 14:39:41 +00:00
Fix month in logger
This commit is contained in:
parent
a36c20eaae
commit
535731c018
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ const char* getTime()
|
||||||
struct tm *tm = localtime(&t);
|
struct tm *tm = localtime(&t);
|
||||||
static char result[20];
|
static char result[20];
|
||||||
sprintf(result, "%.4d-%.2d-%.2d %.2d:%.2d:%.2d",
|
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);
|
tm->tm_hour, tm->tm_min, tm->tm_sec);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue