Add missing number conversion (fixed #108)

This commit is contained in:
Steven Barth 2008-08-17 14:37:53 +00:00
parent 3904a012fa
commit c0d904ac16

View file

@ -34,6 +34,8 @@ function date_format(secs)
local mins = 0 local mins = 0
local hour = 0 local hour = 0
local days = 0 local days = 0
secs = math.floor(tonumber(secs))
if secs > 60 then if secs > 60 then
mins = math.floor(secs / 60) mins = math.floor(secs / 60)
secs = secs % 60 secs = secs % 60