diff --git a/ui/demos/functional/datepicker/debug.html b/ui/demos/functional/datepicker/debug.html index d78507612..a73c5dc62 100644 --- a/ui/demos/functional/datepicker/debug.html +++ b/ui/demos/functional/datepicker/debug.html @@ -1,6 +1,6 @@ - Only core files for easy debug + Only core files for easy debug diff --git a/ui/source/ui.datepicker.js b/ui/source/ui.datepicker.js index 4676378d8..62199f7bb 100644 --- a/ui/source/ui.datepicker.js +++ b/ui/source/ui.datepicker.js @@ -1290,8 +1290,8 @@ $.extend(DatepickerInstance.prototype, { year = drawYear - 10; endYear = drawYear + 10; } else if (years[0].charAt(0) == '+' || years[0].charAt(0) == '-') { - year = drawYear + parseInt(years[0], 10); - endYear = drawYear + parseInt(years[1], 10); + year = new Date().getFullYear() + parseInt(years[0], 10); + endYear = new Date().getFullYear() + parseInt(years[1], 10); } else { year = parseInt(years[0], 10); endYear = parseInt(years[1], 10);