From dc580c22578ec18e6b3215bc70ce0ef9061ba7fc Mon Sep 17 00:00:00 2001 From: sam-astro <77079540+sam-astro@users.noreply.github.com> Date: Fri, 27 May 2022 19:57:55 -0400 Subject: [PATCH] Update builtin.h --- ZSharp/builtin.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;