diff --git a/app/scripts/datePickerUtils.js b/app/scripts/datePickerUtils.js index 7032145..d0517a1 100644 --- a/app/scripts/datePickerUtils.js +++ b/app/scripts/datePickerUtils.js @@ -17,7 +17,7 @@ angular.module('datePicker').factory('datePickerUtils', function(){ date = new Date(date || new Date()); var startMonth = date.getMonth(), startYear = date.getYear(); date.setDate(1); - date.setHours(0); + date.setHours(12); date.setMinutes(0); date.setSeconds(0); date.setMilliseconds(0); @@ -108,4 +108,4 @@ angular.module('datePicker').factory('datePickerUtils', function(){ return this.isSameHour(model, date) && model.getMinutes() === date.getMinutes(); } }; -}); \ No newline at end of file +});