Permalink
Browse files

Datepicker: Use `getFullYear()` instead of deprecated `getYear()`

Fixes #14920
Closes gh-1678
  • Loading branch information...
fzxt authored and scottgonzalez committed Feb 21, 2016
1 parent cbceca7 commit 8564641fb8dcff3f072106b075a1bdb1f16ec63d
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/widgets/datepicker.js
View
@@ -1411,7 +1411,7 @@ $.extend( Datepicker.prototype, {
break;
case "y":
output += ( lookAhead( "y" ) ? date.getFullYear() :
( date.getYear() % 100 < 10 ? "0" : "" ) + date.getYear() % 100 );
( date.getFullYear() % 100 < 10 ? "0" : "" ) + date.getFullYear() % 100 );
break;
case "@":
output += date.getTime();

0 comments on commit 8564641

Please sign in to comment.