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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user