Fixed #906: screenshot filenames have an incorrect month.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12618 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2013-04-07 12:21:51 +00:00
parent b502c96409
commit 9d46f847fc

View File

@@ -1573,7 +1573,7 @@ void IrrDriver::doScreenShot()
tm* timeInfo = localtime( &rawtime );
char time_buffer[256];
sprintf(time_buffer, "%i.%02i.%02i %02i.%02i.%02i",
timeInfo->tm_year + 1900, timeInfo->tm_mon,
timeInfo->tm_year + 1900, timeInfo->tm_mon+1,
timeInfo->tm_mday, timeInfo->tm_hour,
timeInfo->tm_min, timeInfo->tm_sec);