diff --git a/stepmania/src/RageLog.cpp b/stepmania/src/RageLog.cpp index 7734c4e3fb..80d7d918a3 100644 --- a/stepmania/src/RageLog.cpp +++ b/stepmania/src/RageLog.cpp @@ -15,6 +15,7 @@ #include "RageLog.h" #include "RageUtil.h" #include +#include RageLog* LOG; // global and accessable from anywhere in the program @@ -63,10 +64,12 @@ RageLog::RageLog() this->Trace( "Last compiled on %s.", __TIMESTAMP__ ); #endif - SYSTEMTIME st; - GetLocalTime( &st ); + time_t cur_time; + time(&cur_time); + const struct tm *now = localtime(&cur_time); + this->Trace( "Log starting %.4d-%.2d-%.2d %.2d:%.2d:%.2d", - st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond ); + 1900+now->tm_year, now->tm_mon, now->tm_mday, now->tm_hour, now->tm_min, now->tm_sec ); this->Trace( "" ); }