Add missing number conversion (fixed #108)
This commit is contained in:
parent
3904a012fa
commit
c0d904ac16
1 changed files with 2 additions and 0 deletions
|
@ -34,6 +34,8 @@ function date_format(secs)
|
|||
local mins = 0
|
||||
local hour = 0
|
||||
local days = 0
|
||||
|
||||
secs = math.floor(tonumber(secs))
|
||||
if secs > 60 then
|
||||
mins = math.floor(secs / 60)
|
||||
secs = secs % 60
|
||||
|
|
Loading…
Reference in a new issue