Merge pull request #568 from ro-savage/bugfix-datepicker-nextmonth-bug
Fixed bug with changes months on datepickerold
commit
4c86650746
|
@ -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;
|
||||
},
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue