From 1d78cc4950a0ae80229aad1b1d0ae807146ebeb1 Mon Sep 17 00:00:00 2001 From: Francis Cao Date: Mon, 14 Aug 2023 23:07:39 -0700 Subject: [PATCH] fix UTC timezone for CH query --- queries/analytics/events/getEventMetrics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queries/analytics/events/getEventMetrics.ts b/queries/analytics/events/getEventMetrics.ts index 09a8594612..778cfee1bd 100644 --- a/queries/analytics/events/getEventMetrics.ts +++ b/queries/analytics/events/getEventMetrics.ts @@ -41,7 +41,7 @@ async function relationalQuery(websiteId: string, filters: QueryFilters) { } async function clickhouseQuery(websiteId: string, filters: QueryFilters) { - const { timezone = 'utc', unit = 'day' } = filters; + const { timezone = 'UTC', unit = 'day' } = filters; const { rawQuery, getDateQuery, parseFilters } = clickhouse; const { filterQuery, params } = await parseFilters(websiteId, { ...filters,