diff --git a/ZSharp/builtin.h b/ZSharp/builtin.h index b43a5b0..2e616c8 100644 --- a/ZSharp/builtin.h +++ b/ZSharp/builtin.h @@ -162,7 +162,13 @@ int InterpreterLog(const string& logText) tm bt{}; #if UNIX - //localtime_r(&timer, &bt); + time_t currentTime; + struct tm* localTime; + time(¤tTime); + localTime = localtime(&utc); + Hour = localTime->tm_hour; + Min = localTime->tm_min; + Sec = localTime->tm_sec; #elif WINDOWS localtime_s(&bt, &timer); Hour = bt.tm_hour;