1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-02-07 13:31:40 +02:00

Merge branch 'develop' into develop

This commit is contained in:
Gerkiz 2023-03-20 23:34:19 +01:00 committed by GitHub
commit 72d2e7a8fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1221,9 +1221,12 @@ function Public.convertFromEpoch(epoch)
return y + (m <= 2 and 1 or 0), tonumber(m), tonumber(d)
end
local unixTime = floor(epoch) - (60 * 60 * (-2))
local unixTime = floor(epoch) - (60 * 60 * (-1))
if unixTime < 0 then
return
end
local hours = floor(unixTime / 3600 % 24) - 1
local hours = floor(unixTime / 3600 % 24)
local minutes = floor(unixTime / 60 % 60)
local seconds = floor(unixTime % 60)