Skip to content

Commit

Permalink
Merge pull request #4737 from camptocamp/fix-dates-query
Browse files Browse the repository at this point in the history
Fix timezone error with moment
  • Loading branch information
sbrunner committed Mar 12, 2019
2 parents 5e46354 + 19b8f28 commit 87969c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filter/RuleHelper.js
Expand Up @@ -727,8 +727,8 @@ const exports = class {
}

if (momentEnd) {
const startValue = moment(value).format('YYYY-MM-DD HH:mm:ss');
const endValue = momentEnd.format('YYYY-MM-DD HH:mm:ss');
const startValue = moment(value).utc().format('YYYY-MM-DD HH:mm:ss');
const endValue = momentEnd.utc().format('YYYY-MM-DD HH:mm:ss');
filter = olFormatFilter.during(name, startValue, endValue);
}
}
Expand Down

0 comments on commit 87969c8

Please sign in to comment.