From: Fahad Ahmad Date: Sun, 21 Feb 2016 07:36:46 +0000 (-0500) Subject: Datepicker: Use `getFullYear()` instead of deprecated `getYear()` X-Git-Tag: 1.12.0-rc.1~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8564641fb8dcff3f072106b075a1bdb1f16ec63d;p=jquery-ui.git Datepicker: Use `getFullYear()` instead of deprecated `getYear()` Fixes #14920 Closes gh-1678 --- diff --git a/ui/widgets/datepicker.js b/ui/widgets/datepicker.js index b116a1352..c80c27c48 100644 --- a/ui/widgets/datepicker.js +++ b/ui/widgets/datepicker.js @@ -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();