Attempt to fix unix time get

This commit is contained in:
sam-astro 2022-05-27 19:51:25 -04:00
parent 582656be7b
commit c40d902cef

View File

@ -162,7 +162,13 @@ int InterpreterLog(const string& logText)
tm bt{};
#if UNIX
//localtime_r(&timer, &bt);
time_t currentTime;
struct tm* localTime;
time(&currentTime);
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;