Skip to content

Commit

Permalink
Fix timezone error with moment
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Mar 12, 2019
1 parent 1ff6f73 commit 19b8f28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filter/RuleHelper.js
Original file line number Diff line number Diff line change
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 19b8f28

Please sign in to comment.