Skip to content

Commit

Permalink
Datepicker: Use getFullYear() instead of deprecated getYear()
Browse files Browse the repository at this point in the history
Fixes #14920
Closes gh-1678
  • Loading branch information
fzxt authored and scottgonzalez committed Feb 21, 2016
1 parent cbceca7 commit 8564641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/widgets/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8564641

Please sign in to comment.