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

Fixes #14920
Closes gh-1678
This commit is contained in:
Fahad Ahmad 2016-02-21 02:36:46 -05:00 committed by Scott González
parent cbceca7091
commit 8564641fb8

View File

@ -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();