Skip to content

Commit 5ae2009

Browse files
authored
fix(mongobi-driver): Correct time zone conversion for minutes, fix #7152 (#7456)
1 parent eb366e1 commit 5ae2009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-schema-compiler/src/adapter/MongoBiQuery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class MongoBiQuery extends MysqlQuery {
1313
result = `TIMESTAMPADD(HOUR, ${hourInt}, ${result})`;
1414
}
1515
if (minuteInt !== 0) {
16-
result = `TIMESTAMPADD(HOUR, ${minuteInt}, ${result})`;
16+
result = `TIMESTAMPADD(MINUTE, ${minuteInt}, ${result})`;
1717
}
1818
return result;
1919
}

0 commit comments

Comments
 (0)