1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-01-18 03:21:47 +02:00

fixed timestamp bug

This commit is contained in:
grilledham 2018-12-01 16:30:05 +00:00
parent 3883c9e770
commit b350276472

View File

@ -145,7 +145,7 @@ end
-- @param secs<type> unix epoch timestamp
-- @return string
function Public.to_string(secs)
local tt = normalise(secs)
local tt = normalise(1970, 1, 1, 0, 0, secs)
return strformat('%04u-%02u-%02u %02u:%02u:%02d', tt.year, tt.month, tt.day, tt.hour, tt.min, tt.sec)
end