Skip to content

Commit 2b868ef

Browse files
committed
Remove timezone stuff
1 parent ccc05c2 commit 2b868ef

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

dist/ast/converter.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ast/converter.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ast/converter.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,13 +1035,13 @@ export default class Converter {
10351035

10361036
DateBinaryConverter = (kind, operator, expression, options) => {
10371037
const dates = {
1038-
'>': this.GetDate(expression.scalarValue, options),
1039-
'<=': this.GetDate(expression.scalarValue, options),
1040-
'<': this.GetDate(expression.scalarValue, options),
1041-
'>=': this.GetDate(expression.scalarValue, options),
1038+
'>': moment(expression.scalarValue),
1039+
'<=': moment(expression.scalarValue),
1040+
'<': moment(expression.scalarValue),
1041+
'>=': moment(expression.scalarValue),
10421042
};
10431043
const dateStr = this.ConvertDateValue(expression, dates[operator]);
1044-
console.log('DateBinaryConverter, dateStr', dateStr);
1044+
console.log('DateBinaryConverter, date', dates[operator], 'dateStr', dateStr);
10451045
return AExpr(kind, operator, columnRef(expression.column),
10461046
this.ConstValue(expression.column, dateStr));
10471047
}

0 commit comments

Comments
 (0)