Fix boolean with number comparison

This commit is contained in:
Aleksandr Beliaev 2016-06-02 19:44:19 +12:00
parent 095bff7b26
commit 7013529117

View file

@ -43,7 +43,7 @@ local function worker(args)
local utc_offset = args.utc_offset or local utc_offset = args.utc_offset or
function () function ()
local now = os.time() local now = os.time()
return os.difftime(now, os.time(os.date("!*t", now))) + (os.date("*t").isdst and 3600) return os.difftime(now, os.time(os.date("!*t", now))) + ((os.date("*t").isdst and 1 or 0) * 3600)
end end
local units = args.units or "metric" local units = args.units or "metric"
local lang = args.lang or "en" local lang = args.lang or "en"