Skip to content

Commit 9e8b843

Browse files
committed
small improvement
1 parent 525a796 commit 9e8b843

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-schema-compiler/src/adapter/Granularity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export class Granularity {
9999
// Interval range doesn't take timezone into account and operate in kinda local timezone,
100100
// but origin is treated as a timestamp in query timezone, so we pass it as the naive timestamp
101101
// to be in sync with date range during calculation.
102-
return timeSeriesFromCustomInterval(this.granularityInterval, dateRange, moment(this.origin.format('YYYY-MM-DDTHH:mm:ss')), options);
102+
return timeSeriesFromCustomInterval(this.granularityInterval, dateRange, moment(this.originLocalFormatted()), options);
103103
}
104104

105105
public resolvedGranularity(): string {

0 commit comments

Comments
 (0)