Updated date output for Clickhouse.

This commit is contained in:
Mike Cao committed 2024-07-08 23:41:40 -07:00
1 parent 62f35668ae
commit 4494665d2e
6 files changed
+20 -17

No files matched your search

+1 -1
View File
@@ -292,7 +292,7 @@ export function getDateArray(data: any[], startDate: Date, endDate: Date, unit:
for (let i = 0; i <= n; i++) {
const t = start(add(startDate, i));
const y = data.find(({ x }) => start(getDateFromString(x)).getTime() === t.getTime())?.y || 0;
const y = data.find(({ x }) => start(new Date(x)).getTime() === t.getTime())?.y || 0;
arr.push({ x: t, y });
}