From 279cc3b17bc62bf391a6a86c05f697b8a3f88e9f Mon Sep 17 00:00:00 2001 From: Igor Vieira Date: Mon, 24 Feb 2014 21:25:03 -0300 Subject: [PATCH] Fixes the daylight saving time duplicated date problem --- jquery.datetimepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jquery.datetimepicker.js b/jquery.datetimepicker.js index 4cd16a3..8fbd3e9 100644 --- a/jquery.datetimepicker.js +++ b/jquery.datetimepicker.js @@ -705,7 +705,7 @@ datetimepicker .on('xchange.xdsoft',function( event ) { var table = '', - start = new Date(_xdsoft_datetime.currentTime.getFullYear(),_xdsoft_datetime.currentTime.getMonth(),1), + start = new Date(_xdsoft_datetime.currentTime.getFullYear(),_xdsoft_datetime.currentTime.getMonth(),1, 12, 0, 0), i = 0, today = _xdsoft_datetime.now(); while( start.getDay()!=options.dayOfWeekStart )