]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Changed isoYear to isoWeekYear
authorIskren Chernev <iskren.chernev@gmail.com>
Mon, 22 Apr 2013 08:36:50 +0000 (01:36 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Wed, 24 Apr 2013 09:10:33 +0000 (02:10 -0700)
moment.js

index def192145a5c834be535cd83f06e5262ca190b68..40bac6d68fefdafddec4f24a03987a01733d6a20 100644 (file)
--- a/moment.js
+++ b/moment.js
                 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);
             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));
         },