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:
commit
72d2e7a8fb
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user