Merge pull request #568 from ro-savage/bugfix-datepicker-nextmonth-bug

Fixed bug with changes months on datepicker
old
Javi Velasco 2016-06-16 20:17:54 +02:00 committed by GitHub
commit 4c86650746
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ const time = {
addMonths (d, months) {
const newDate = this.clone(d);
newDate.setMonth(d.getMonth() + months);
newDate.setMonth(d.getMonth() + months, 1);
return newDate;
},

View File

@ -139,7 +139,7 @@ var time = {
},
addMonths: function addMonths(d, months) {
var newDate = this.clone(d);
newDate.setMonth(d.getMonth() + months);
newDate.setMonth(d.getMonth() + months, 1);
return newDate;
},
addYears: function addYears(d, years) {