Merge pull request #567 from Manidos/master

Fix for picker jumping to the next month
This commit is contained in:
Valeriy 2017-05-12 09:58:14 +05:00 committed by GitHub
commit 1de55d4df2

View File

@ -1888,6 +1888,7 @@ var DateFormatter;
if (!norecursion && options.defaultDate) { if (!norecursion && options.defaultDate) {
date = _this.strToDateTime(options.defaultDate); date = _this.strToDateTime(options.defaultDate);
d.setDate(1);
d.setFullYear(date.getFullYear()); d.setFullYear(date.getFullYear());
d.setMonth(date.getMonth()); d.setMonth(date.getMonth());
d.setDate(date.getDate()); d.setDate(date.getDate());