Просмотр исходного кода

Fixes #91, custom datetime picker is one day off

Torkel Ödegaard 12 лет назад
Родитель
Сommit
ff01764f95
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/app/panels/timepicker/module.js

+ 2 - 2
src/app/panels/timepicker/module.js

@@ -77,8 +77,8 @@ function (angular, app, _, moment, kbn) {
       $scope.temptime = cloneTime($scope.time);
       $scope.temptime = cloneTime($scope.time);
 
 
       // Date picker needs the date to be at the start of the day
       // 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) {
       $q.when(customTimeModal).then(function(modalEl) {
         modalEl.modal('show');
         modalEl.modal('show');