From: Vsevolod Stakhov Date: Fri, 12 Apr 2019 11:39:10 +0000 (+0100) Subject: [Fix] Slashing: Store times in GMT timezone in ClickHouse X-Git-Tag: 1.9.2~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=18c2b8ae42ce60ec6075abddd94603d15ed33a11;p=thirdparty%2Frspamd.git [Fix] Slashing: Store times in GMT timezone in ClickHouse --- diff --git a/src/plugins/lua/clickhouse.lua b/src/plugins/lua/clickhouse.lua index 8e07362f85..d7efa635fb 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')