fix UTC timezone for CH query

This commit is contained in:
Francis Cao 2023-08-14 23:07:39 -07:00
parent e45d014042
commit 1d78cc4950

View File

@ -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,