Fix for picker jumping to the next month

The problem is described in "issue #44".
This commit is contained in:
Manidos 2017-03-31 19:00:49 +07:00 committed by GitHub
parent ec0865991d
commit 63f679b959

View File

@ -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());