aboutsummaryrefslogtreecommitdiffstats
path: root/ui/source
diff options
context:
space:
mode:
Diffstat (limited to 'ui/source')
-rw-r--r--ui/source/ui.datepicker.js4
1 files changed, 2 insertions, 2 deletions
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);