if not opts.selector then
opts.selector = string.format('%s-%s', opts.algorithm,
- os.date("%Y%m%d"))
+ os.date("!%Y%m%d"))
end
local err,data = rspamd_http.request{
-- Insert keys for each algorithm in pairs <old_key(s)>, <new_key>
local sk,pk = genkey({algorithm = alg, bits = keys[1].bits})
local selector = string.format('%s-%s', alg,
- os.date("%Y%m%d"))
+ os.date("!%Y%m%d"))
if selector == keys[1].selector then
selector = selector .. '-1'
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)
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)