We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1346da commit 6c81a02Copy full SHA for 6c81a02
packages/cubejs-api-gateway/dateParser.js
@@ -26,7 +26,7 @@ module.exports = (dateString) => {
26
momentRange = [moment().startOf('day'), moment().endOf('day')];
27
} else if (dateString.match(/yesterday/)) {
28
const yesterday = moment().add(-1, 'day');
29
- momentRange = [yesterday.startOf('day'), yesterday.endOf('day')];
+ momentRange = [moment(yesterday).startOf('day'), moment(yesterday).endOf('day')];
30
} else {
31
const results = chrono.parse(dateString);
32
if (!results) {
0 commit comments