remove timezone from realtime. Closes #3700

This commit is contained in:
Francis Cao 2025-11-11 13:13:25 -08:00
parent 14f5babea7
commit 30781430c5
5 changed files with 6 additions and 14 deletions

View file

@ -61,7 +61,7 @@ function getDateStringSQL(data: any, unit: string = 'utc', timezone?: string) {
function getDateSQL(field: string, unit: string, timezone?: string) {
if (timezone) {
return `toDateTime(date_trunc('${unit}', ${field}, '${timezone}'), '${timezone}')`;
return `toDateTime(date_trunc('${unit}', ${field}, '${timezone}'))`;
}
return `toDateTime(date_trunc('${unit}', ${field}))`;
}