Skip to content

Commit 36b836a

Browse files
committed
return back utcToLocalTimeZone in replaceQueryBuildRangeParams
1 parent 641d6cf commit 36b836a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cubejs-query-orchestrator/src/orchestrator/PreAggregationPartitionRangeLoader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ export class PreAggregationPartitionRangeLoader {
136136
return queryValues?.map(
137137
param => {
138138
if (param === BUILD_RANGE_START_LOCAL) {
139-
return PreAggregationPartitionRangeLoader.inDbTimeZone(this.preAggregation, buildRangeStart);
139+
return utcToLocalTimeZone(this.preAggregation.timezone, this.preAggregation.timestampFormat, buildRangeStart);
140140
} else if (param === BUILD_RANGE_END_LOCAL) {
141-
return PreAggregationPartitionRangeLoader.inDbTimeZone(this.preAggregation, buildRangeEnd);
141+
return utcToLocalTimeZone(this.preAggregation.timezone, this.preAggregation.timestampFormat, buildRangeEnd);
142142
} else {
143143
return param;
144144
}

0 commit comments

Comments
 (0)