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