Fix boolean with number comparison
This commit is contained in:
parent
095bff7b26
commit
7013529117
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ local function worker(args)
|
|||
local utc_offset = args.utc_offset or
|
||||
function ()
|
||||
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
|
||||
local units = args.units or "metric"
|
||||
local lang = args.lang or "en"
|
||||
|
|
Loading…
Add table
Reference in a new issue