aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-05-08 12:09:52 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-05-08 12:09:52 +0100
commitc6a5be1c1d08b4e4948a215a27c6406b51f48c8a (patch)
tree203e4352392cf9725a8d41dd4e97b1425971f700 /src
parent8a944397339627b4ce725c8e3092f8702a4f5fbe (diff)
downloadrspamd-c6a5be1c1d08b4e4948a215a27c6406b51f48c8a.tar.gz
rspamd-c6a5be1c1d08b4e4948a215a27c6406b51f48c8a.zip
[Fix] Dmarc report: Use local timezone instead of GMT
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/dmarc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua
index 79a1826d4..2d00bad10 100644
--- a/src/plugins/lua/dmarc.lua
+++ b/src/plugins/lua/dmarc.lua
@@ -304,8 +304,8 @@ local function dmarc_validate_policy(task, policy, hdrfromdom, dmarc_esld)
end
-- Prepare and send redis report element
- local period = os.date('!%Y%m%d',
- task:get_date({format = 'connect', gmt = true}))
+ local period = os.date('%Y%m%d',
+ task:get_date({format = 'connect', gmt = false}))
-- Dmarc domain key must include dmarc domain, rua and period
local dmarc_domain_key = table.concat(