In screenshot title, use local time instead of GMT time

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11457 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria
2012-08-01 00:14:19 +00:00
parent 8c9c123986
commit fd6f2aa617

View File

@@ -1612,7 +1612,7 @@ void IrrDriver::update(float dt)
{
time_t rawtime;
time ( &rawtime );
tm* timeInfo = gmtime( &rawtime );
tm* timeInfo = localtime( &rawtime );
char timeBuffer[256];
sprintf(timeBuffer, "%i.%02i.%02i %02i.%02i.%02i",
timeInfo->tm_year + 1900, timeInfo->tm_mon, timeInfo->tm_mday,