ZeroK-RTS / Chobby

Spring RTS Ingame lobby project
15 stars 37 forks source link

Afk/Ingame times off by one hour #228

Open DeinFreund opened 7 years ago

DeinFreund commented 7 years ago

off

The times are offset by +1 hour. It shows 1h 1m instead of 1m.

Licho1 commented 7 years ago

Functions not considering daylight saving time properly?

GoogleFrog commented 7 years ago

Possibly. Which end though? Chobby does time functions in LuaMenu/Addons/timefunctions.lua and gets current UTC time like this:

local currentTime = { tonumber(os.date("!%S")), tonumber(os.date("!%M")), tonumber(os.date("!%H")), tonumber(os.date("!%d")), --tonumber(os.date("!%m")), --tonumber(os.date("!%Y")), }

Licho1 commented 7 years ago

server just sends everyting in utc which is not applying any daylight saving offsets