Skip to content
Permalink
Browse files

Fixed 3526. Default year if not set from input field.

  • Loading branch information...
Keith Wood
Keith Wood committed Nov 7, 2008
1 parent eb68aad commit cee6a3a96fdab9854a73f291ac86c9c90a8b2469
Showing with 3 additions and 1 deletion.
  1. +3 −1 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) {

0 comments on commit cee6a3a

Please sign in to comment.
You can’t perform that action at this time.