From: Iskren Chernev Date: Mon, 22 Apr 2013 08:36:50 +0000 (-0700) Subject: Changed isoYear to isoWeekYear X-Git-Tag: 2.1.0~28^2~3^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a8fbdee3648a34f3390565e5072120320528d0f;p=thirdparty%2Fmoment.git Changed isoYear to isoWeekYear --- diff --git a/moment.js b/moment.js index def192145..40bac6d68 100644 --- a/moment.js +++ b/moment.js @@ -131,13 +131,13 @@ return leftZeroFill(this.year(), 5); }, GG : function () { - return leftZeroFill(this.isoYear() % 100, 2); + return leftZeroFill(this.isoWeekYear() % 100, 2); }, GGGG : function () { - return this.isoYear(); + return this.isoWeekYear(); }, GGGGG : function () { - return leftZeroFill(this.isoYear(), 5); + return leftZeroFill(this.isoWeekYear(), 5); }, a : function () { return this.lang().meridiem(this.hours(), this.minutes(), true); @@ -1345,7 +1345,7 @@ return input == null ? week : this.add("d", (input - week) * 7); }, - isoYear: function (input) { + isoWeekYear: function (input) { var year = weekOfYear(this, 1, 4).year; return input == null ? year : this.add("y", (input - year)); },