task:get_date returns a fractional double; PUC-Rio Lua 5.3+ rejects
non-integer floats as the second argument to os.date with "number has
no integer representation". LuaJIT accepts it, so the bug only fires
on the Fedora CI build.
end
-- Prepare and send redis report element
+ -- math.floor is required: task:get_date returns a fractional double and
+ -- PUC-Rio Lua 5.3+ rejects non-integer floats as the second arg to os.date
local period = os.date('%Y%m%d',
- task:get_date({ format = 'connect', gmt = false }))
+ math.floor(task:get_date({ format = 'connect', gmt = false })))
-- Dmarc domain key must include dmarc domain, rua and period
local dmarc_domain_key = table.concat(