From fba3793ac40bd4a980049f2e27f0a0faddaedff6 Mon Sep 17 00:00:00 2001 From: silverwolfx10 Date: Mon, 27 Oct 2014 12:37:34 -0200 Subject: [PATCH] BugFix Duplicate Date By Daylight saving --- app/scripts/datePickerUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +});