]> source.dussan.org Git - jquery-ui.git/commitdiff
Datepicker: Use `getFullYear()` instead of deprecated `getYear()`
authorFahad Ahmad <fahadahmad41@hotmail.com>
Sun, 21 Feb 2016 07:36:46 +0000 (02:36 -0500)
committerScott González <scott.gonzalez@gmail.com>
Sun, 21 Feb 2016 17:38:23 +0000 (12:38 -0500)
Fixes #14920
Closes gh-1678

ui/widgets/datepicker.js

index b116a13520d0d5f3d94c777ea306746354c58e36..c80c27c48fe00581367923c7c9df9ccb419b4f1a 100644 (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();