diff --git a/ui/ui.datepicker.js b/ui/ui.datepicker.js index 35428c64b..9570729d5 100644 --- a/ui/ui.datepicker.js +++ b/ui/ui.datepicker.js @@ -1032,7 +1032,9 @@ $.extend(Datepicker.prototype, { checkLiteral(); } } - if (year < 100) + if (year == -1) + year = new Date().getFullYear(); + else if (year < 100) year += new Date().getFullYear() - new Date().getFullYear() % 100 + (year <= shortYearCutoff ? 0 : -100); if (doy > -1) {