diff options
author | Fahad Ahmad <fahadahmad41@hotmail.com> | 2016-02-21 02:36:46 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2016-02-21 12:38:23 -0500 |
commit | 8564641fb8dcff3f072106b075a1bdb1f16ec63d (patch) | |
tree | da00c6b935196d227df4b5d362e171ebbfea9283 | |
parent | cbceca7091b17e05c5a9ba887ef54761568bb70b (diff) | |
download | jquery-ui-8564641fb8dcff3f072106b075a1bdb1f16ec63d.tar.gz jquery-ui-8564641fb8dcff3f072106b075a1bdb1f16ec63d.zip |
Datepicker: Use `getFullYear()` instead of deprecated `getYear()`
Fixes #14920
Closes gh-1678
-rw-r--r-- | ui/widgets/datepicker.js | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |