From ff01764f95534ac5f5ddf497d7faa063200ea02d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 12 Feb 2014 15:52:53 +0100 Subject: [PATCH] Fixes #91, custom datetime picker is one day off --- src/app/panels/timepicker/module.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/panels/timepicker/module.js b/src/app/panels/timepicker/module.js index 35a7963285d..093afa17556 100644 --- a/src/app/panels/timepicker/module.js +++ b/src/app/panels/timepicker/module.js @@ -77,8 +77,8 @@ function (angular, app, _, moment, kbn) { $scope.temptime = cloneTime($scope.time); // Date picker needs the date to be at the start of the day - $scope.temptime.from.date.setHours(0,0,0,0); - $scope.temptime.to.date.setHours(0,0,0,0); + $scope.temptime.from.date.setHours(1,0,0,0); + $scope.temptime.to.date.setHours(1,0,0,0); $q.when(customTimeModal).then(function(modalEl) { modalEl.modal('show');