diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-05-01 13:42:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-05-01 13:42:33 +0100 |
commit | f4efae27e91d2666c10097701c5d1345a4b92cf7 (patch) | |
tree | 09a1bdc92befd1b27076d6c75a015b01a51dfdf1 /src/plugins | |
parent | 9a2991d15c71c1a2f487f9d95d4b7a46b7832950 (diff) | |
download | rspamd-f4efae27e91d2666c10097701c5d1345a4b92cf7.tar.gz rspamd-f4efae27e91d2666c10097701c5d1345a4b92cf7.zip |
[Fix] Switch to GMT
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/clickhouse.lua | 2 | ||||
-rw-r--r-- | src/plugins/lua/dmarc.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua index 9559ef5cb..6e427682f 100644 --- a/src/plugins/lua/clickhouse.lua +++ b/src/plugins/lua/clickhouse.lua @@ -289,7 +289,7 @@ local function clickhouse_asn_row(res) end local function today(ts) - return os.date('%Y-%m-%d', ts) + return os.date('!%Y-%m-%d', ts) end local function clickhouse_check_symbol(task, symbols, need_score) diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index 8c22f84b2..2c9bf1951 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -528,7 +528,7 @@ local function dmarc_validate_policy(task, policy, hdrfromdom, dmarc_esld) end -- Prepare and send redis report element - local period = os.date('%Y%m%d', + local period = os.date('!%Y%m%d', task:get_date({format = 'connect', gmt = true})) local dmarc_domain_key = table.concat( {redis_keys.report_prefix, hdrfromdom, period}, redis_keys.join_char) |