From b350276472ca67e714f39a721cd6d4c6417b22b6 Mon Sep 17 00:00:00 2001 From: grilledham Date: Sat, 1 Dec 2018 16:30:05 +0000 Subject: [PATCH] fixed timestamp bug --- utils/timestamp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/timestamp.lua b/utils/timestamp.lua index 3002b1e4..9af76e5d 100644 --- a/utils/timestamp.lua +++ b/utils/timestamp.lua @@ -145,7 +145,7 @@ end -- @param secs 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