From 63f679b959b8f85430e0e03b776c8cc7cb9afaa7 Mon Sep 17 00:00:00 2001 From: Manidos Date: Fri, 31 Mar 2017 19:00:49 +0700 Subject: [PATCH] Fix for picker jumping to the next month The problem is described in "issue #44". --- build/jquery.datetimepicker.full.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/jquery.datetimepicker.full.js b/build/jquery.datetimepicker.full.js index ebed876..cb210a1 100644 --- a/build/jquery.datetimepicker.full.js +++ b/build/jquery.datetimepicker.full.js @@ -3,7 +3,7 @@ * @version 1.3.3 * * Date formatter utility library that allows formatting date/time variables or Date objects using PHP DateTime format. - * @see http://php.net/manual/en/function.date.php + * @see http://php.net/manual/en/function.date.phpXDSoft_datetime * * For more JQuery plugins visit http://plugins.krajee.com * For more Yii related demos visit http://demos.krajee.com @@ -1834,6 +1834,7 @@ var DateFormatter; if (!norecursion && options.defaultDate) { date = _this.strToDateTime(options.defaultDate); + d.setDate(0); d.setFullYear(date.getFullYear()); d.setMonth(date.getMonth()); d.setDate(date.getDate());