$NetBSD: patch-src_plugins_lua_dmarc.lua,v 1.1 2024/05/16 15:22:14 taca Exp $ os.date() require integer as second argument but get_date() returns float on NetBSD. So, convert return value of get_date() to integer. This fix is provided from Yoshitaka Tokugawa . --- src/plugins/lua/dmarc.lua.orig 2024-02-26 09:36:56.000000000 +0000 +++ src/plugins/lua/dmarc.lua @@ -310,7 +310,7 @@ local function dmarc_validate_policy(tas -- Prepare and send redis report element 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(