From 18c2b8ae42ce60ec6075abddd94603d15ed33a11 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 12 Apr 2019 12:39:10 +0100 Subject: [PATCH] [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 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') -- 2.47.3