diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/admin-core/luasrc/tools/webadmin.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/admin-core/luasrc/tools/webadmin.lua b/modules/admin-core/luasrc/tools/webadmin.lua index 1fda11eea..7f123ec4d 100644 --- a/modules/admin-core/luasrc/tools/webadmin.lua +++ b/modules/admin-core/luasrc/tools/webadmin.lua @@ -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 |