mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker: Use getFullYear()
instead of deprecated getYear()
Fixes #14920 Closes gh-1678
This commit is contained in:
parent
cbceca7091
commit
8564641fb8
@ -1411,7 +1411,7 @@ $.extend( Datepicker.prototype, {
|
|||||||
break;
|
break;
|
||||||
case "y":
|
case "y":
|
||||||
output += ( lookAhead( "y" ) ? date.getFullYear() :
|
output += ( lookAhead( "y" ) ? date.getFullYear() :
|
||||||
( date.getYear() % 100 < 10 ? "0" : "" ) + date.getYear() % 100 );
|
( date.getFullYear() % 100 < 10 ? "0" : "" ) + date.getFullYear() % 100 );
|
||||||
break;
|
break;
|
||||||
case "@":
|
case "@":
|
||||||
output += date.getTime();
|
output += date.getTime();
|
||||||
|
Loading…
Reference in New Issue
Block a user