From 2a6730c9c145fae64f9fc817a4431b6e705abfb3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 14 Feb 2003 07:18:00 +0000 Subject: [PATCH] use standard functions --- stepmania/src/RageLog.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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( "" ); }