diff --git a/frontend/util.lua b/frontend/util.lua index 4c9d0c940..3dfebe88e 100644 --- a/frontend/util.lua +++ b/frontend/util.lua @@ -47,8 +47,8 @@ function util.gsplit(str, pattern, capture) end --https://gist.github.com/jesseadams/791673 -function util.secondsToClock(sec, withoutSeconds) - local seconds = tonumber(sec) +function util.secondsToClock(seconds, withoutSeconds) + seconds = tonumber(seconds) if seconds == 0 or seconds ~= seconds then if withoutSeconds then return "00:00";