summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-12 12:39:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-12 12:39:10 +0100
commit18c2b8ae42ce60ec6075abddd94603d15ed33a11 (patch)
tree15ad83381f217d44430367d0ab40f980895229fb /src/plugins/lua
parent4e79bc05da66ad3e29c80b0e7220537bab3d5ae4 (diff)
downloadrspamd-18c2b8ae42ce60ec6075abddd94603d15ed33a11.tar.gz
rspamd-18c2b8ae42ce60ec6075abddd94603d15ed33a11.zip
[Fix] Slashing: Store times in GMT timezone in ClickHouse
Diffstat (limited to 'src/plugins/lua')
-rw-r--r--src/plugins/lua/clickhouse.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua
index 8e07362f8..d7efa635f 100644
--- a/src/plugins/lua/clickhouse.lua
+++ b/src/plugins/lua/clickhouse.lua
@@ -449,7 +449,7 @@ local function clickhouse_collect(task)
local timestamp = task:get_date({
format = 'connect',
- gmt = false
+ gmt = true, -- The only sane way to sync stuff with different timezones
})
local action = task:get_metric_action('default')