Skip to content

Commit

Permalink
Merge pull request #653 from hakobera/fix-date-range-selector
Browse files Browse the repository at this point in the history
Fix date range selector does not show data of last day when user timezone is not UTC
  • Loading branch information
arikfr committed Nov 18, 2015
2 parents e3b41b1 + ad19f2d commit 1bdc1be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rd_ui/app/scripts/visualizations/date_range_selector.js
Expand Up @@ -21,8 +21,8 @@
});

$scope.$watch('dateRangeHuman', function (dateRangeHuman, oldDateRangeHuman, scope) {
var newDateRangeMin = moment(dateRangeHuman.min);
var newDateRangeMax = moment(dateRangeHuman.max);
var newDateRangeMin = moment.utc(dateRangeHuman.min);
var newDateRangeMax = moment.utc(dateRangeHuman.max);
if (!newDateRangeMin ||
!newDateRangeMax ||
!newDateRangeMin.isValid() ||
Expand Down

0 comments on commit 1bdc1be

Please sign in to comment.