From 8564641fb8dcff3f072106b075a1bdb1f16ec63d Mon Sep 17 00:00:00 2001 From: Fahad Ahmad Date: Sun, 21 Feb 2016 02:36:46 -0500 Subject: [PATCH] Datepicker: Use `getFullYear()` instead of deprecated `getYear()` Fixes #14920 Closes gh-1678 --- ui/widgets/datepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.5