commit 18c2b8a: [Fix] Slashing: Store times in GMT timezone in ClickHouse

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Apr 12 11:42:07 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-04-12 12:39:10 +0100
URL: https://github.com/rspamd/rspamd/commit/18c2b8ae42ce60ec6075abddd94603d15ed33a11 (HEAD -> master)

[Fix] Slashing: Store times in GMT timezone in ClickHouse

---
 src/plugins/lua/clickhouse.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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')


More information about the Commits mailing list