Fix grafana endpoint error: field 'sec' is not an integer

Fixes #2207
This commit is contained in:
emanuele-f 2018-12-07 10:40:45 +01:00
parent 5c3488bf6f
commit 94603367e8
2 changed files with 3 additions and 2 deletions

View file

@ -1004,7 +1004,7 @@ end
-- Compute the difference in seconds between local time and UTC.
function get_timezone()
local now = os.time()
return os.difftime(now, os.time(os.date("!*t", now)))
return math.floor(os.difftime(now, os.time(os.date("!*t", now))))
end
function getCategoriesWithProtocols()