diff --git a/ZSharp/builtin.h b/ZSharp/builtin.h index 2e616c8..f4014dc 100644 --- a/ZSharp/builtin.h +++ b/ZSharp/builtin.h @@ -164,8 +164,10 @@ int InterpreterLog(const string& logText) #if UNIX time_t currentTime; struct tm* localTime; - time(¤tTime); - localTime = localtime(&utc); + + time(¤tTime); // Get the current time + localTime = localtime(¤tTime); // Convert the current time to the local time + Hour = localTime->tm_hour; Min = localTime->tm_min; Sec = localTime->tm_sec;