diff options
-rw-r--r-- | ui/ui.datepicker.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js index a8ccd8ef3..6ec694e47 100644 --- a/ui/ui.datepicker.js +++ b/ui/ui.datepicker.js @@ -1450,9 +1450,8 @@ $.extend(Datepicker.prototype, { year = drawYear - 10; endYear = drawYear + 10; } else if (years[0].charAt(0) == '+' || years[0].charAt(0) == '-') { - year = endYear = new Date().getFullYear(); - year += parseInt(years[0], 10); - endYear += parseInt(years[1], 10); + year = drawYear + parseInt(years[0], 10); + endYear = drawYear + parseInt(years[1], 10); } else { year = parseInt(years[0], 10); endYear = parseInt(years[1], 10); |