]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Slashing: Store times in GMT timezone in ClickHouse
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 12 Apr 2019 11:39:10 +0000 (12:39 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 12 Apr 2019 11:39:10 +0000 (12:39 +0100)
src/plugins/lua/clickhouse.lua

index 8e07362f85bac2f712cee0d0162a7424000ba9c0..d7efa635fb643925c9c29158050114395943cb7b 100644 (file)
@@ -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')