Originally Posted by votan
The way I found is:
Lua Code:
local localTimeShift = GetSecondsSinceMidnight() -(GetTimeStamp() % 86400) if localTimeShift < -12 * 60 * 60 then localTimeShift = localTimeShift + 86400 end
And yes, GetTimeStamp() is UTC and GetSecondsSinceMidnight() is current clients time including daylight saving.
|
This is exactly what I needed, thanks very much!