]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Fixing week formatting and reverting tests from #495 in favor of `WW` formatting
authorTim Wood <washwithcare@gmail.com>
Wed, 7 Nov 2012 22:59:49 +0000 (14:59 -0800)
committerTim Wood <washwithcare@gmail.com>
Wed, 7 Nov 2012 22:59:49 +0000 (14:59 -0800)
40 files changed:
moment.js
test/lang/bg.js
test/lang/cs.js
test/lang/cv.js
test/lang/da.js
test/lang/de.js
test/lang/en-ca.js
test/lang/en-gb.js
test/lang/en.js
test/lang/eo.js
test/lang/es.js
test/lang/et.js
test/lang/eu.js
test/lang/fi.js
test/lang/fr-ca.js
test/lang/fr.js
test/lang/he.js
test/lang/hu.js
test/lang/id.js
test/lang/is.js
test/lang/it.js
test/lang/ja.js
test/lang/jp.js
test/lang/ko.js
test/lang/kr.js
test/lang/lv.js
test/lang/nb.js
test/lang/ne.js
test/lang/nl.js
test/lang/pl.js
test/lang/pt-br.js
test/lang/pt.js
test/lang/ro.js
test/lang/ru.js
test/lang/sl.js
test/lang/sv.js
test/lang/tr.js
test/lang/zh-cn.js
test/lang/zh-tw.js
test/moment/format.js

index 6d83cadb5b66fbc543d4ff12f37678724284ef9b..515b224ab59fd34ed55a681c9a380a5d6b3a5b78 100644 (file)
--- a/moment.js
+++ b/moment.js
                 return this.lang().weekdays(this, format);
             },
             w    : function () {
-                var a = new Date(this.year(), this.month(), this.date());
-                a.setHours(0, 0, 0);
-                a.setDate(a.getDate() + 4 - (a.getDay() || 7));
-                return Math.ceil((1 + (a - (new Date(a.getFullYear(), 0, 1))) / 864e5) / 7);
+                return this.week();
             },
             W    : function () {
                 return this.isoWeek();
index 3de48168ee32925cb5c459620efefec39a99d14e..8bb217338afdc0566cadcbc3043e7e778f99c88f 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:bg"] = {
                 ['D Do DD',                            '14 14-ти 14'],
                 ['d do dddd ddd dd',                   '0 0-ев неделя нед нд'],
                 ['DDD DDDo DDDD',                      '45 45-ти 045'],
-                ['w wo ww',                            '6 6-ти 06'],
+                ['w wo ww',                            '8 8-ми 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
index 4d010e4c9ac49824513b3488477d9c6defa195de..4b29131ad2411b07d38324e3dd0e934422afdc49 100644 (file)
@@ -38,7 +38,7 @@ exports["lang:cs"] = {
                 ['D Do DD',                      '14 14. 14'],
                 ['d do dddd ddd dd',             '0 0. neděle ne ne'],
                 ['DDD DDDo DDDD',                '45 45. 045'],
-                ['w wo ww',                      '6 6. 06'],
+                ['w wo ww',                      '8 8. 08'],
                 ['h hh',                         '3 03'],
                 ['H HH',                         '15 15'],
                 ['m mm',                         '25 25'],
@@ -71,7 +71,7 @@ exports["lang:cs"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8.', '8.');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9.', '9.');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10.', '10.');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11.', '11.');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12.', '12.');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13.', '13.');
@@ -82,7 +82,7 @@ exports["lang:cs"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18.', '18.');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19.', '19.');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20.', '20.');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21.', '21.');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22.', '22.');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23.', '23.');
@@ -93,7 +93,7 @@ exports["lang:cs"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28.', '28.');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29.', '29.');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30.', '30.');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31.', '31.');
         test.done();
     },
@@ -219,9 +219,9 @@ exports["lang:cs"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('cs');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "dnes v 2:00",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "dnes v 2:25",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "dnes v 3:00",     "Now plus 1 hour");
@@ -234,7 +234,7 @@ exports["lang:cs"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('cs');
-    
+
         for (var i = 2; i < 7; i++) {
             var m = moment().add({ d: i });
             var nextDay = '';
@@ -259,7 +259,7 @@ exports["lang:cs"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('cs');
-    
+
         for (var i = 2; i < 7; i++) {
             var m = moment().subtract({ d: i });
             var lastDay = '';
@@ -286,13 +286,13 @@ exports["lang:cs"] = {
         moment.lang('cs');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
         test.done();
index dfd0063a801712bc41b26f3b4d5c8ea38ded10b2..da08327a193b7eb5a987e48e665169c0387506c9 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:cv"] = {
                 ['D Do DD',                            '14 14-мĕш 14'],
                 ['d do dddd ddd dd',                   '0 0-мĕш вырсарникун выр вр'],
                 ['DDD DDDo DDDD',                      '45 45-мĕш 045'],
-                ['w wo ww',                            '6 6-мĕш 06'],
+                ['w wo ww',                            '8 8-мĕш 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:cv"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8-мĕш', '8-мĕш');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9-мĕш', '9-мĕш');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10-мĕш', '10-мĕш');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11-мĕш', '11-мĕш');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12-мĕш', '12-мĕш');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13-мĕш', '13-мĕш');
@@ -83,7 +83,7 @@ exports["lang:cv"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18-мĕш', '18-мĕш');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19-мĕш', '19-мĕш');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20-мĕш', '20-мĕш');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21-мĕш', '21-мĕш');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22-мĕш', '22-мĕш');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23-мĕш', '23-мĕш');
@@ -94,7 +94,7 @@ exports["lang:cv"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28-мĕш', '28-мĕш');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29-мĕш', '29-мĕш');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30-мĕш', '30-мĕш');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31-мĕш', '31-мĕш');
         test.done();
     },
@@ -185,8 +185,8 @@ exports["lang:cv"] = {
 
     "calendar day" : function(test) {
         test.expect(6);
-        moment.lang('cv');  
-        var a = moment().hours(2).minutes(0).seconds(0);  
+        moment.lang('cv');
+        var a = moment().hours(2).minutes(0).seconds(0);
         test.equal(moment(a).calendar(),                     "Паян 02:00 сехетре",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "Паян 02:25 сехетре",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "Паян 03:00 сехетре",     "Now plus 1 hour");
@@ -199,10 +199,10 @@ exports["lang:cv"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('cv');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('[Çитес] dddd LT [сехетре]'),  "Today + " + i + " days current time");
@@ -217,7 +217,7 @@ exports["lang:cv"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('cv');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('[Иртнĕ] dddd LT [сехетре]'),  "Today - " + i + " days current time");
@@ -234,13 +234,13 @@ exports["lang:cv"] = {
         moment.lang('cv');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index fb474511f59af780b88e27889bfc92907424b5e0..48395a926d6dacf8e89e8b6a3917caf691355563 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:da"] = {
                 ['D Do DD',                            '14 14. 14'],
                 ['d do dddd ddd dd',                   '0 0. Søndag Søn Sø'],
                 ['DDD DDDo DDDD',                      '45 45. 045'],
-                ['w wo ww',                            '6 6. 06'],
+                ['w wo ww',                            '8 8. 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:da"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8.', '8.');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9.', '9.');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10.', '10.');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11.', '11.');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12.', '12.');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13.', '13.');
@@ -83,7 +83,7 @@ exports["lang:da"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18.', '18.');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19.', '19.');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20.', '20.');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21.', '21.');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22.', '22.');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23.', '23.');
@@ -94,7 +94,7 @@ exports["lang:da"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28.', '28.');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29.', '29.');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30.', '30.');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31.', '31.');
         test.done();
     },
index 1f1cb130999d197e63f70d20e25cfe2abd6171ba..df2ffaac0e13b6a086a12bb07622625b07c50ce2 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:de"] = {
                 ['D Do DD',                            '14 14. 14'],
                 ['d do dddd ddd dd',                   '0 0. Sonntag So. So'],
                 ['DDD DDDo DDDD',                      '45 45. 045'],
-                ['w wo ww',                            '6 6. 06'],
+                ['w wo ww',                            '8 8. 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:de"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8.', '8.');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9.', '9.');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10.', '10.');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11.', '11.');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12.', '12.');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13.', '13.');
@@ -83,7 +83,7 @@ exports["lang:de"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18.', '18.');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19.', '19.');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20.', '20.');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21.', '21.');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22.', '22.');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23.', '23.');
@@ -94,7 +94,7 @@ exports["lang:de"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28.', '28.');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29.', '29.');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30.', '30.');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31.', '31.');
         test.done();
     },
@@ -177,9 +177,9 @@ exports["lang:de"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('de');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "Heute um 2:00 Uhr",   "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "Heute um 2:25 Uhr",   "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "Heute um 3:00 Uhr",   "Now plus 1 hour");
@@ -192,10 +192,10 @@ exports["lang:de"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('de');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('dddd [um] LT'),  "Today + " + i + " days current time");
@@ -210,7 +210,7 @@ exports["lang:de"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('de');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('[letzten] dddd [um] LT'),  "Today + " + i + " days current time");
@@ -227,13 +227,13 @@ exports["lang:de"] = {
         moment.lang('de');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index e721f48728ea80f9f0a94e3e71331bb0429137f1..b2a2d0beb24a6842582eac7d045cede76e1f12c9 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:en-ca"] = {
                 ['D Do DD',                            '14 14th 14'],
                 ['d do dddd ddd dd',                   '0 0th Sunday Sun Su'],
                 ['DDD DDDo DDDD',                      '45 45th 045'],
-                ['w wo ww',                            '6 6th 06'],
+                ['w wo ww',                            '8 8th 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:en-ca"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8th', '8th');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9th', '9th');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10th', '10th');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11th', '11th');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12th', '12th');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13th', '13th');
@@ -83,7 +83,7 @@ exports["lang:en-ca"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18th', '18th');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19th', '19th');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20th', '20th');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21st', '21st');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22nd', '22nd');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23rd', '23rd');
@@ -94,7 +94,7 @@ exports["lang:en-ca"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28th', '28th');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29th', '29th');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30th', '30th');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31st', '31st');
         test.done();
     },
@@ -184,9 +184,9 @@ exports["lang:en-ca"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('en-gb');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "Today at 2:00 AM",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "Today at 2:25 AM",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "Today at 3:00 AM",     "Now plus 1 hour");
@@ -199,10 +199,10 @@ exports["lang:en-ca"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('en-gb');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('dddd [at] LT'),  "Today + " + i + " days current time");
@@ -217,7 +217,7 @@ exports["lang:en-ca"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('en-gb');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('[last] dddd [at] LT'),  "Today - " + i + " days current time");
@@ -234,13 +234,13 @@ exports["lang:en-ca"] = {
         moment.lang('en-gb');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index eec79165b02ef24aeb7bb2e48b0cb8d10790ec76..cc5c8516895c303100ffa02c7bd826538c3f1b1e 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:en-gb"] = {
                 ['D Do DD',                            '14 14th 14'],
                 ['d do dddd ddd dd',                   '0 0th Sunday Sun Su'],
                 ['DDD DDDo DDDD',                      '45 45th 045'],
-                ['w wo ww',                            '6 6th 06'],
+                ['w wo ww',                            '8 8th 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:en-gb"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8th', '8th');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9th', '9th');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10th', '10th');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11th', '11th');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12th', '12th');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13th', '13th');
@@ -83,7 +83,7 @@ exports["lang:en-gb"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18th', '18th');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19th', '19th');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20th', '20th');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21st', '21st');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22nd', '22nd');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23rd', '23rd');
@@ -94,7 +94,7 @@ exports["lang:en-gb"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28th', '28th');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29th', '29th');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30th', '30th');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31st', '31st');
         test.done();
     },
@@ -184,9 +184,9 @@ exports["lang:en-gb"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('en-gb');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "Today at 2:00 AM",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "Today at 2:25 AM",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "Today at 3:00 AM",     "Now plus 1 hour");
@@ -199,10 +199,10 @@ exports["lang:en-gb"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('en-gb');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('dddd [at] LT'),  "Today + " + i + " days current time");
@@ -217,7 +217,7 @@ exports["lang:en-gb"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('en-gb');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('[last] dddd [at] LT'),  "Today - " + i + " days current time");
@@ -234,13 +234,13 @@ exports["lang:en-gb"] = {
         moment.lang('en-gb');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index 3955f0298a5dfb865675801178fbb438493c0553..694222bee083e067856abff208680bcb98e4a090 100644 (file)
@@ -52,7 +52,7 @@ exports["lang:en"] = {
                 ['D Do DD',                            '14 14th 14'],
                 ['d do dddd ddd dd',                   '0 0th Sunday Sun Su'],
                 ['DDD DDDo DDDD',                      '45 45th 045'],
-                ['w wo ww',                            '6 6th 06'],
+                ['w wo ww',                            '8 8th 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -355,6 +355,18 @@ exports["lang:en"] = {
         test.equal(moment([2011,  0,  8]).week(), 2, "Jan  8 2011 should be week 2");
         test.equal(moment([2011,  0,  9]).week(), 3, "Jan  9 2011 should be week 3");
 
+        test.done();
+    },
+
+    "weeks year starting sunday format" : function(test) {
+        test.expect(5);
+
+        test.equal(moment([2012, 0,  1]).format('w ww wo'), '1 01 1st', "Jan  1 2012 should be week 1");
+        test.equal(moment([2012, 0,  7]).format('w ww wo'), '1 01 1st', "Jan  7 2012 should be week 1");
+        test.equal(moment([2012, 0,  8]).format('w ww wo'), '2 02 2nd', "Jan  8 2012 should be week 2");
+        test.equal(moment([2012, 0, 14]).format('w ww wo'), '2 02 2nd', "Jan 14 2012 should be week 2");
+        test.equal(moment([2012, 0, 15]).format('w ww wo'), '3 03 3rd', "Jan 15 2012 should be week 3");
+
         test.done();
     }
 };
index b034ad6b4d5113481025c758e7f1642a0a7143d8..12bd181569633365c299a8c98fd98a66e5b736e1 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:eo"] = {
                 ['D Do DD',                            '14 14a 14'],
                 ['d do dddd ddd dd',                   '0 0a Dimanĉo Dim Di'],
                 ['DDD DDDo DDDD',                      '45 45a 045'],
-                ['w wo ww',                            '6 6a 06'],
+                ['w wo ww',                            '8 8a 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:eo"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8a', '8a');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9a', '9a');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10a', '10a');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11a', '11a');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12a', '12a');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13a', '13a');
@@ -83,7 +83,7 @@ exports["lang:eo"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18a', '18a');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19a', '19a');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20a', '20a');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21a', '21a');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22a', '22a');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23a', '23a');
@@ -94,7 +94,7 @@ exports["lang:eo"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28a', '28a');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29a', '29a');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30a', '30a');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31a', '31a');
         test.done();
     },
@@ -184,9 +184,9 @@ exports["lang:eo"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('eo');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "Hodiaŭ je 02:00",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "Hodiaŭ je 02:25",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "Hodiaŭ je 03:00",     "Now plus 1 hour");
@@ -199,10 +199,10 @@ exports["lang:eo"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('eo');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('dddd [je] LT'),  "Today + " + i + " days current time");
@@ -217,7 +217,7 @@ exports["lang:eo"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('eo');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('[pasinta] dddd [je] LT'),  "Today - " + i + " days current time");
@@ -234,13 +234,13 @@ exports["lang:eo"] = {
         moment.lang('eo');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index 21e393a29c9e1554477f40beeeb4b6c85f29c40e..0d79843fbcd8d368f8a9fef656ab0bb4e49f8941 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:es"] = {
                 ['D Do DD',                            '14 14º 14'],
                 ['d do dddd ddd dd',                   '0 0º domingo dom. Do'],
                 ['DDD DDDo DDDD',                      '45 45º 045'],
-                ['w wo ww',                            '6 6º 06'],
+                ['w wo ww',                            '8 8º 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:es"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8º', '8º');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9º', '9º');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10º', '10º');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11º', '11º');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12º', '12º');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13º', '13º');
@@ -83,7 +83,7 @@ exports["lang:es"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18º', '18º');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19º', '19º');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20º', '20º');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21º', '21º');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22º', '22º');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23º', '23º');
@@ -94,7 +94,7 @@ exports["lang:es"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28º', '28º');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29º', '29º');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30º', '30º');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31º', '31º');
         test.done();
     },
@@ -184,9 +184,9 @@ exports["lang:es"] = {
     "calendar day" : function(test) {
         test.expect(7);
         moment.lang('es');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                         "hoy a las 2:00",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),          "hoy a las 2:25",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),           "hoy a las 3:00",     "Now plus 1 hour");
@@ -200,10 +200,10 @@ exports["lang:es"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('es');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('dddd [a la' + ((m.hours() !== 1) ? 's' : '') + '] LT'),  "Today + " + i + " days current time");
@@ -218,7 +218,7 @@ exports["lang:es"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('es');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('[el] dddd [pasado a la' + ((m.hours() !== 1) ? 's' : '') + '] LT'),  "Today - " + i + " days current time");
@@ -235,13 +235,13 @@ exports["lang:es"] = {
         moment.lang('es');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index 9f28b16948cc22d9ce3f8375d194cf763b5db7c6..b87c3984d7e8cf4d7c07ab66f67c27b1278eec2d 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:et"] = {
                 ['D Do DD',                            '14 14. 14'],
                 ['d do dddd ddd dd',                   '0 0. pühapäev P P'],
                 ['DDD DDDo DDDD',                      '45 45. 045'],
-                ['w wo ww',                            '6 6. 06'],
+                ['w wo ww',                            '8 8. 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:et"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8.', '8.');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9.', '9.');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10.', '10.');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11.', '11.');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12.', '12.');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13.', '13.');
@@ -83,7 +83,7 @@ exports["lang:et"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18.', '18.');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19.', '19.');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20.', '20.');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21.', '21.');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22.', '22.');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23.', '23.');
@@ -94,7 +94,7 @@ exports["lang:et"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28.', '28.');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29.', '29.');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30.', '30.');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31.', '31.');
         test.done();
     },
@@ -184,9 +184,9 @@ exports["lang:et"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('et');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "Täna, 2:00",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "Täna, 2:25",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "Täna, 3:00",     "Now plus 1 hour");
@@ -199,10 +199,10 @@ exports["lang:et"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('et');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('[Järgmine] dddd LT'),  "Today + " + i + " days current time");
@@ -217,7 +217,7 @@ exports["lang:et"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('et');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('[Eelmine] dddd LT'),  "Today - " + i + " days current time");
@@ -234,13 +234,13 @@ exports["lang:et"] = {
         moment.lang('en');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 nädal tagasi");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "1 nädala pärast");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 nädalat tagasi");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "2 nädala pärast");
     test.done();
index 73df376c87cad189c19dae3f96778759026045b1..eaa31bbf17a63e253e7fedfeb31b8e4e30f6df50 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:eu"] = {
                 ['D Do DD',                            '14 14. 14'],
                 ['d do dddd ddd dd',                   '0 0. igandea ig. ig'],
                 ['DDD DDDo DDDD',                      '45 45. 045'],
-                ['w wo ww',                            '6 6. 06'],
+                ['w wo ww',                            '8 8. 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:eu"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8.', '8.');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9.', '9.');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10.', '10.');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11.', '11.');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12.', '12.');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13.', '13.');
@@ -83,7 +83,7 @@ exports["lang:eu"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18.', '18.');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19.', '19.');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20.', '20.');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21.', '21.');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22.', '22.');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23.', '23.');
@@ -94,7 +94,7 @@ exports["lang:eu"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28.', '28.');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29.', '29.');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30.', '30.');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31.', '31.');
         test.done();
     },
@@ -184,9 +184,9 @@ exports["lang:eu"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('eu');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "gaur 02:00etan",  "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "gaur 02:25etan",  "now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "gaur 03:00etan",  "now plus 1 hour");
@@ -199,10 +199,10 @@ exports["lang:eu"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('eu');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('dddd LT[etan]'),  "Today + " + i + " days current time");
@@ -217,7 +217,7 @@ exports["lang:eu"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('eu');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('[aurreko] dddd LT[etan]'),  "Today - " + i + " days current time");
@@ -234,13 +234,13 @@ exports["lang:eu"] = {
         moment.lang('eu');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index 70d7c619f75234b734a6fc74ab3a6b80f613ad6c..6c83ff4c8c2b4f84e00f36f22318990c158d4599 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:fi"] = {
                 ['D Do DD',                            '14 14. 14'],
                 ['d do dddd ddd dd',                   '0 0. sunnuntai su su'],
                 ['DDD DDDo DDDD',                      '45 45. 045'],
-                ['w wo ww',                            '6 6. 06'],
+                ['w wo ww',                            '8 8. 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
index edf5ef1057d2c39a2cc4d201843c8dddd909b82f..4eaeaa9d409df6d7abd09c89ada1ec5b722c7c72 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:fr-ca"] = {
                 ['D Do DD',                            '14 14ème 14'],
                 ['d do dddd ddd dd',                   '0 0ème dimanche dim. Di'],
                 ['DDD DDDo DDDD',                      '45 45ème 045'],
-                ['w wo ww',                            '6 6ème 06'],
+                ['w wo ww',                            '8 8ème 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:fr-ca"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8ème', '8ème');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9ème', '9ème');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10ème', '10ème');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11ème', '11ème');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12ème', '12ème');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13ème', '13ème');
@@ -83,7 +83,7 @@ exports["lang:fr-ca"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18ème', '18ème');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19ème', '19ème');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20ème', '20ème');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21ème', '21ème');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22ème', '22ème');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23ème', '23ème');
@@ -94,7 +94,7 @@ exports["lang:fr-ca"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28ème', '28ème');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29ème', '29ème');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30ème', '30ème');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31ème', '31ème');
         test.done();
     },
@@ -177,9 +177,9 @@ exports["lang:fr-ca"] = {
     "same day" : function(test) {
         test.expect(6);
         moment.lang('fr');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "Aujourd'hui à 02:00",    "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "Aujourd'hui à 02:25",    "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "Aujourd'hui à 03:00",    "Now plus 1 hour");
@@ -192,10 +192,10 @@ exports["lang:fr-ca"] = {
     "same next week" : function(test) {
         test.expect(15);
         moment.lang('fr');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('dddd [à] LT'),  "Today + " + i + " days current time");
@@ -210,7 +210,7 @@ exports["lang:fr-ca"] = {
     "same last week" : function(test) {
         test.expect(15);
         moment.lang('fr');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('dddd [dernier à] LT'),  "Today - " + i + " days current time");
@@ -227,13 +227,13 @@ exports["lang:fr-ca"] = {
         moment.lang('fr');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index 72f94176beba046b59ce43b644cabcd6f186e2ff..d430d2554ee863f6c103001d7f6e0a51c9fbff82 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:fr"] = {
                 ['D Do DD',                            '14 14ème 14'],
                 ['d do dddd ddd dd',                   '0 0ème dimanche dim. Di'],
                 ['DDD DDDo DDDD',                      '45 45ème 045'],
-                ['w wo ww',                            '6 6ème 06'],
+                ['w wo ww',                            '8 8ème 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:fr"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8ème', '8ème');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9ème', '9ème');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10ème', '10ème');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11ème', '11ème');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12ème', '12ème');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13ème', '13ème');
@@ -83,7 +83,7 @@ exports["lang:fr"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18ème', '18ème');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19ème', '19ème');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20ème', '20ème');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21ème', '21ème');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22ème', '22ème');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23ème', '23ème');
@@ -94,7 +94,7 @@ exports["lang:fr"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28ème', '28ème');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29ème', '29ème');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30ème', '30ème');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31ème', '31ème');
         test.done();
     },
@@ -177,9 +177,9 @@ exports["lang:fr"] = {
     "same day" : function(test) {
         test.expect(6);
         moment.lang('fr');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "Aujourd'hui à 02:00",    "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "Aujourd'hui à 02:25",    "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "Aujourd'hui à 03:00",    "Now plus 1 hour");
@@ -192,10 +192,10 @@ exports["lang:fr"] = {
     "same next week" : function(test) {
         test.expect(15);
         moment.lang('fr');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('dddd [à] LT'),  "Today + " + i + " days current time");
@@ -210,7 +210,7 @@ exports["lang:fr"] = {
     "same last week" : function(test) {
         test.expect(15);
         moment.lang('fr');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('dddd [dernier à] LT'),  "Today - " + i + " days current time");
@@ -227,13 +227,13 @@ exports["lang:fr"] = {
         moment.lang('fr');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index 03c2b680e58dea419d7bbad0ba461926d3c5cb39..058e445da6dd2461bf60581e02a817f955ee5ca9 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:he"] = {
                 ['D Do DD',                            '14 14 14'],
                 ['d do dddd ddd dd',                   '0 0 ראשון א׳ א'],
                 ['DDD DDDo DDDD',                      '45 45 045'],
-                ['w wo ww',                            '6 6 06'],
+                ['w wo ww',                            '8 8 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
index f081fb8cf32cf1b3a0dea7b4288f536339b9d5d8..97caf968efa80912d0ec013984cb438e732ea073 100644 (file)
@@ -38,7 +38,7 @@ exports["lang:hu"] = {
                 ['D Do DD',                            '14 14. 14'],
                 ['d do dddd ddd',                      '0 0. vasárnap v'],
                 ['DDD DDDo DDDD',                      '45 45. 045'],
-                ['w wo ww',                            '6 6. 06'],
+                ['w wo ww',                            '8 8. 08'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
                 ['s ss',                               '50 50'],
@@ -200,7 +200,7 @@ exports["lang:hu"] = {
         var i;
         var m;
         var days = 'vasárnap_hétfőn_kedden_szerdán_csütörtökön_pénteken_szombaton'.split('_');
-        
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('['+days[m.day()]+'] LT[-kor]'),  "today + " + i + " days current time");
@@ -227,7 +227,7 @@ exports["lang:hu"] = {
             m.hours(23).minutes(59).seconds(59).milliseconds(999);
             test.equal(m.calendar(),       m.format('múlt ['+days[m.day()]+'] LT[-kor]'),  "today - " + i + " days end of day");
         }
-        
+
         test.done();
     },
 
index da344bfabfb3a6ddc5604bb24ade975159ed5fde..646b24bc7a31557202e2151613ff77cae15e938d 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:id"] = {
                 ['D Do DD',                            '14 14 14'],
                 ['d do dddd ddd dd',                   '0 0 Minggu Min Mg'],
                 ['DDD DDDo DDDD',                      '45 45 045'],
-                ['w wo ww',                            '6 6 06'],
+                ['w wo ww',                            '8 8 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -144,9 +144,9 @@ exports["lang:id"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('id');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "Hari ini pukul 02.00", "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "Hari ini pukul 02.25", "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "Hari ini pukul 03.00", "Now plus 1 hour");
@@ -159,10 +159,10 @@ exports["lang:id"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('id');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('dddd [pukul] LT'),  "Today + " + i + " days current time");
@@ -177,7 +177,7 @@ exports["lang:id"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('id');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('dddd [lalu pukul] LT'),  "Today - " + i + " days current time");
@@ -194,13 +194,13 @@ exports["lang:id"] = {
         moment.lang('id');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index 34d475213ed45c4a0c5ea91240fca0dbce4a8dac..5f4282a1e1da630b36c12dbcaf204c6f0cc4a5c4 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:is"] = {
                 ['D Do DD',                            '14 14. 14'],
                 ['d do dddd ddd dd',                   '0 0. sunnudagur sun Su'],
                 ['DDD DDDo DDDD',                      '45 45. 045'],
-                ['w wo ww',                            '6 6. 06'],
+                ['w wo ww',                            '8 8. 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:is"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8.', '8.');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9.', '9.');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10.', '10.');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11.', '11.');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12.', '12.');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13.', '13.');
@@ -83,7 +83,7 @@ exports["lang:is"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18.', '18.');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19.', '19.');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20.', '20.');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21.', '21.');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22.', '22.');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23.', '23.');
@@ -94,7 +94,7 @@ exports["lang:is"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28.', '28.');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29.', '29.');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30.', '30.');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31.', '31.');
         test.done();
     },
@@ -190,9 +190,9 @@ exports["lang:is"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('is');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "í dag kl. 2:00",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "í dag kl. 2:25",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "í dag kl. 3:00",     "Now plus 1 hour");
@@ -205,10 +205,10 @@ exports["lang:is"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('is');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('dddd [kl.] LT'),  "Today + " + i + " days current time");
@@ -223,7 +223,7 @@ exports["lang:is"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('is');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('[síðasta] dddd [kl.] LT'),  "Today - " + i + " days current time");
@@ -240,13 +240,13 @@ exports["lang:is"] = {
         moment.lang('is');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index 70559c24896036e170aef0790d7adaf6db211745..a23355bf69ef615bc1ddb76739d9ef4b1166a80f 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:it"] = {
                 ['D Do DD',                            '14 14º 14'],
                 ['d do dddd ddd dd',                   '0 0º Domenica Dom D'],
                 ['DDD DDDo DDDD',                      '45 45º 045'],
-                ['w wo ww',                            '6 6º 06'],
+                ['w wo ww',                            '8 8º 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:it"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8º', '8º');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9º', '9º');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10º', '10º');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11º', '11º');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12º', '12º');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13º', '13º');
@@ -83,7 +83,7 @@ exports["lang:it"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18º', '18º');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19º', '19º');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20º', '20º');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21º', '21º');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22º', '22º');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23º', '23º');
@@ -94,7 +94,7 @@ exports["lang:it"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28º', '28º');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29º', '29º');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30º', '30º');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31º', '31º');
         test.done();
     },
@@ -177,9 +177,9 @@ exports["lang:it"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('it');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "Oggi alle 02:00",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "Oggi alle 02:25",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "Oggi alle 03:00",     "Now plus 1 hour");
@@ -192,10 +192,10 @@ exports["lang:it"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('it');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('dddd [alle] LT'),  "Today + " + i + " days current time");
@@ -210,7 +210,7 @@ exports["lang:it"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('it');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('[lo scorso] dddd [alle] LT'),  "Today - " + i + " days current time");
@@ -227,13 +227,13 @@ exports["lang:it"] = {
         moment.lang('it');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index e2e2c3b3f3d62d882dc6e8f4c73b5e06a1807782..0705ae751dc9d8c6b7eac8d2a02c70d3c04963bf 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:jp"] = {
                 ['D Do DD',                            '14 14 14'],
                 ['d do dddd ddd dd',                   '0 0 日曜日 日 日'],
                 ['DDD DDDo DDDD',                      '45 45 045'],
-                ['w wo ww',                            '6 6 06'],
+                ['w wo ww',                            '8 8 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
index 9ed84ee2b2847f468a747215e8e32aa45b3e0dd1..8b47f7a47d174ab02ab7dbab258466e2dd7cabf8 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:jp"] = {
                 ['D Do DD',                            '14 14 14'],
                 ['d do dddd ddd dd',                   '0 0 日曜日 日 日'],
                 ['DDD DDDo DDDD',                      '45 45 045'],
-                ['w wo ww',                            '6 6 06'],
+                ['w wo ww',                            '8 8 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
index 8a4901e879053185e494a965673ae58145fc99e1..d7b7ce376a3fa01b78cd0d29b74174d7bdff60b0 100644 (file)
@@ -38,7 +38,7 @@ exports["lang:kr"] = {
                 ['D Do DD',                            '14 14일 14'],
                 ['d do dddd ddd dd',                   '0 0일 일요일 일 일'],
                 ['DDD DDDo DDDD',                      '45 45일 045'],
-                ['w wo ww',                            '6 6일 06'],
+                ['w wo ww',                            '8 8일 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -71,7 +71,7 @@ exports["lang:kr"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8일', '8일');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9일', '9일');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10일', '10일');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11일', '11일');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12일', '12일');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13일', '13일');
@@ -82,7 +82,7 @@ exports["lang:kr"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18일', '18일');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19일', '19일');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20일', '20일');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21일', '21일');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22일', '22일');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23일', '23일');
@@ -93,7 +93,7 @@ exports["lang:kr"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28일', '28일');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29일', '29일');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30일', '30일');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31일', '31일');
         test.done();
     },
@@ -183,9 +183,9 @@ exports["lang:kr"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('ko');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "오늘 오전 2시 00분",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "오늘 오전 2시 25분",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "오늘 오전 3시 00분",     "Now plus 1 hour");
@@ -198,10 +198,10 @@ exports["lang:kr"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('ko');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('dddd LT'),  "Today + " + i + " days current time");
@@ -216,7 +216,7 @@ exports["lang:kr"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('ko');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('지난주 dddd LT'),  "Today - " + i + " days current time");
@@ -233,13 +233,13 @@ exports["lang:kr"] = {
         moment.lang('ko');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index a0dd0bb2d03c73a66f8332e04ed7797408b3bed1..f7aed47b9c6264d384477937e3792d5def70887f 100644 (file)
@@ -38,7 +38,7 @@ exports["lang:kr"] = {
                 ['D Do DD',                            '14 14일 14'],
                 ['d do dddd ddd dd',                   '0 0일 일요일 일 일'],
                 ['DDD DDDo DDDD',                      '45 45일 045'],
-                ['w wo ww',                            '6 6일 06'],
+                ['w wo ww',                            '8 8일 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -71,7 +71,7 @@ exports["lang:kr"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8일', '8일');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9일', '9일');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10일', '10일');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11일', '11일');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12일', '12일');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13일', '13일');
@@ -82,7 +82,7 @@ exports["lang:kr"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18일', '18일');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19일', '19일');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20일', '20일');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21일', '21일');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22일', '22일');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23일', '23일');
@@ -93,7 +93,7 @@ exports["lang:kr"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28일', '28일');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29일', '29일');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30일', '30일');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31일', '31일');
         test.done();
     },
@@ -183,9 +183,9 @@ exports["lang:kr"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('kr');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "오늘 오전 2시 00분",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "오늘 오전 2시 25분",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "오늘 오전 3시 00분",     "Now plus 1 hour");
@@ -198,10 +198,10 @@ exports["lang:kr"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('kr');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('dddd LT'),  "Today + " + i + " days current time");
@@ -216,7 +216,7 @@ exports["lang:kr"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('kr');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('지난주 dddd LT'),  "Today - " + i + " days current time");
@@ -233,13 +233,13 @@ exports["lang:kr"] = {
         moment.lang('kr');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index 07c01655d6070dea99c0dc1f998471a8c7b1b4fd..d28fc65ebf139617bbbcef634b80bda71c3415d7 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:lv"] = {
                 ['D Do DD',                            '14 14. 14'],
                 ['d do dddd ddd dd',                   '0 0. svētdiena Sv Sv'],
                 ['DDD DDDo DDDD',                      '45 45. 045'],
-                ['w wo ww',                            '6 6. 06'],
+                ['w wo ww',                            '8 8. 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
index 392228fbbb00370327f1f57efbc2f57166bbb607..69c0049c18294256e74f3ceaf1ab762bb52e42c8 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:nb"] = {
                 ['D Do DD',                            '14 14. 14'],
                 ['d do dddd ddd dd',                   '0 0. søndag søn sø'],
                 ['DDD DDDo DDDD',                      '45 45. 045'],
-                ['w wo ww',                            '6 6. 06'],
+                ['w wo ww',                            '8 8. 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:nb"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8.', '8.');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9.', '9.');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10.', '10.');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11.', '11.');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12.', '12.');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13.', '13.');
@@ -83,7 +83,7 @@ exports["lang:nb"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18.', '18.');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19.', '19.');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20.', '20.');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21.', '21.');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22.', '22.');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23.', '23.');
@@ -94,7 +94,7 @@ exports["lang:nb"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28.', '28.');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29.', '29.');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30.', '30.');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31.', '31.');
         test.done();
     },
@@ -184,9 +184,9 @@ exports["lang:nb"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('nb');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "I dag klokken 02:00",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "I dag klokken 02:25",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "I dag klokken 03:00",     "Now plus 1 hour");
@@ -199,10 +199,10 @@ exports["lang:nb"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('nb');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('dddd [klokken] LT'),  "Today + " + i + " days current time");
@@ -217,7 +217,7 @@ exports["lang:nb"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('nb');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('[Forrige] dddd [klokken] LT'),  "Today - " + i + " days current time");
@@ -234,13 +234,13 @@ exports["lang:nb"] = {
         moment.lang('nb');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index c6b2685f5ec5e9c6029fbda47e668d5fdf3ac071..a1c186b7c7090a62fc27e9084a797dcd43f9d186 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:ne"] = {
                 ['D Do DD',                            '१४ १४ १४'],
                 ['d do dddd ddd dd',                   '० ० आइतबार आइत. आइ.'],
                 ['DDD DDDo DDDD',                      '४५ ४५ ०४५'],
-                ['w wo ww',                            '६ à¥¬ à¥¦à¥¬'],
+                ['w wo ww',                            '८ à¥® à¥¦à¥®'],
                 ['h hh',                               '३ ०३'],
                 ['H HH',                               '१५ १५'],
                 ['m mm',                               '२५ २५'],
@@ -71,7 +71,7 @@ exports["lang:ne"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '८', '८');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '९', '९');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '१०', '१०');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '११', '११');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '१२', '१२');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '१३', '१३');
@@ -82,7 +82,7 @@ exports["lang:ne"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '१८', '१८');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '१९', '१९');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '२०', '२०');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '२१', '२१');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '२२','२२');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '२३', '२३');
@@ -93,7 +93,7 @@ exports["lang:ne"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '२८','२८');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '२९','२९');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '३०', '३०');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '३१', '३१');
         test.done();
     },
@@ -183,9 +183,9 @@ exports["lang:ne"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('ne');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "आज रातीको २:०० बजे",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "आज रातीको २:२५ बजे",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "आज बिहानको ३:०० बजे",     "Now plus 1 hour");
@@ -198,10 +198,10 @@ exports["lang:ne"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('ne');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('[आउँदो] dddd[,] LT'),  "Today + " + i + " days current time");
@@ -216,7 +216,7 @@ exports["lang:ne"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('ne');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('[गएको] dddd[,] LT'),  "Today - " + i + " days current time");
@@ -233,13 +233,13 @@ exports["lang:ne"] = {
         moment.lang('ne');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index b7cf1ea28b28e05895c1d523b699ae7430dcd14c..456af69451161bff4fc73a99056300d3a8f6fc09 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:nl"] = {
                 ['D Do DD',                            '14 14de 14'],
                 ['d do dddd ddd dd',                   '0 0de zondag zo. Zo'],
                 ['DDD DDDo DDDD',                      '45 45ste 045'],
-                ['w wo ww',                            '6 6de 06'],
+                ['w wo ww',                            '8 8ste 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:nl"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8ste', '8ste');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9de', '9de');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10de', '10de');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11de', '11de');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12de', '12de');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13de', '13de');
@@ -83,7 +83,7 @@ exports["lang:nl"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18de', '18de');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19de', '19de');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20ste', '20ste');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21ste', '21ste');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22ste', '22ste');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23ste', '23ste');
@@ -94,7 +94,7 @@ exports["lang:nl"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28ste', '28ste');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29ste', '29ste');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30ste', '30ste');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31ste', '31ste');
         test.done();
     },
@@ -184,9 +184,9 @@ exports["lang:nl"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('nl');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "Vandaag om 02:00",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "Vandaag om 02:25",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "Vandaag om 03:00",     "Now plus 1 hour");
@@ -199,10 +199,10 @@ exports["lang:nl"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('nl');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('dddd [om] LT'),  "Today + " + i + " days current time");
@@ -217,7 +217,7 @@ exports["lang:nl"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('nl');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('[afgelopen] dddd [om] LT'),  "Today - " + i + " days current time");
@@ -234,13 +234,13 @@ exports["lang:nl"] = {
         moment.lang('nl');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
@@ -249,7 +249,7 @@ exports["lang:nl"] = {
     "month abbreviation" : function(test) {
         test.expect(2);
         moment.lang('nl');
-         
+
         test.equal(moment([2012, 5, 23]).format('D-MMM-YYYY'), '23-jun-2012', 'format month abbreviation surrounded by dashes should not include a dot');
         test.equal(moment([2012, 5, 23]).format('D MMM YYYY'), '23 jun. 2012', 'format month abbreviation not surrounded by dashes should include a dot');
 
index d34d9cafc87b714cbf84316deacee85eaf487a8f..46cb66a0c7b86929608f59466cc57edba74391ca 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:pl"] = {
                 ['D Do DD',                            '14 14. 14'],
                 ['d do dddd ddd dd',                   '0 0. niedziela nie N'],
                 ['DDD DDDo DDDD',                      '45 45. 045'],
-                ['w wo ww',                            '6 6. 06'],
+                ['w wo ww',                            '8 8. 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:pl"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8.', '8.');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9.', '9.');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10.', '10.');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11.', '11.');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12.', '12.');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13.', '13.');
@@ -83,7 +83,7 @@ exports["lang:pl"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18.', '18.');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19.', '19.');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20.', '20.');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21.', '21.');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22.', '22.');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23.', '23.');
@@ -94,7 +94,7 @@ exports["lang:pl"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28.', '28.');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29.', '29.');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30.', '30.');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31.', '31.');
         test.done();
     },
@@ -185,9 +185,9 @@ exports["lang:pl"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('pl');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "Dziś o 02:00",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "Dziś o 02:25",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "Dziś o 03:00",     "Now plus 1 hour");
@@ -200,10 +200,10 @@ exports["lang:pl"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('pl');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('[W] dddd [o] LT'),  "Today + " + i + " days current time");
@@ -218,7 +218,7 @@ exports["lang:pl"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('pl');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('[W zeszły/łą] dddd [o] LT'),  "Today - " + i + " days current time");
@@ -235,13 +235,13 @@ exports["lang:pl"] = {
         moment.lang('pl');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index 01ecd20c92e0ead3af20f7e605b7974dda5d5f86..182be9a8c2ef5f847fdd9527b13ce601c15fb03e 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:pt-br"] = {
                 ['D Do DD',                            '14 14º 14'],
                 ['d do dddd ddd',                      '0 0º Domingo Dom'],
                 ['DDD DDDo DDDD',                      '45 45º 045'],
-                ['w wo ww',                            '6 6º 06'],
+                ['w wo ww',                            '8 8º 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:pt-br"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8º', '8º');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9º', '9º');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10º', '10º');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11º', '11º');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12º', '12º');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13º', '13º');
@@ -83,7 +83,7 @@ exports["lang:pt-br"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18º', '18º');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19º', '19º');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20º', '20º');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21º', '21º');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22º', '22º');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23º', '23º');
@@ -94,7 +94,7 @@ exports["lang:pt-br"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28º', '28º');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29º', '29º');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30º', '30º');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31º', '31º');
         test.done();
     },
@@ -177,9 +177,9 @@ exports["lang:pt-br"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('pt-br');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "Hoje às 02:00",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "Hoje às 02:25",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "Hoje às 03:00",     "Now plus 1 hour");
@@ -192,10 +192,10 @@ exports["lang:pt-br"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('pt-br');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('dddd [às] LT'),  "Today + " + i + " days current time");
@@ -210,7 +210,7 @@ exports["lang:pt-br"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('pt-br');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format((m.day() === 0 || m.day() === 6) ? '[Último] dddd [às] LT' : '[Última] dddd [às] LT'),  "Today - " + i + " days current time");
@@ -227,13 +227,13 @@ exports["lang:pt-br"] = {
         moment.lang('pt-br');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index 8d1dd6219473014048929ca22ce0807afca23b5c..691e49ca62ae0f4019aab4b13da52690d4e02926 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:pt"] = {
                 ['D Do DD',                            '14 14º 14'],
                 ['d do dddd ddd dd',                   '0 0º Domingo Dom Dom'],
                 ['DDD DDDo DDDD',                      '45 45º 045'],
-                ['w wo ww',                            '6 6º 06'],
+                ['w wo ww',                            '8 8º 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:pt"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8º', '8º');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9º', '9º');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10º', '10º');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11º', '11º');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12º', '12º');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13º', '13º');
@@ -83,7 +83,7 @@ exports["lang:pt"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18º', '18º');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19º', '19º');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20º', '20º');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21º', '21º');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22º', '22º');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23º', '23º');
@@ -94,7 +94,7 @@ exports["lang:pt"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28º', '28º');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29º', '29º');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30º', '30º');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31º', '31º');
         test.done();
     },
@@ -177,9 +177,9 @@ exports["lang:pt"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('pt');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "Hoje às 02:00",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "Hoje às 02:25",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "Hoje às 03:00",     "Now plus 1 hour");
@@ -192,10 +192,10 @@ exports["lang:pt"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('pt');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('dddd [às] LT'),  "Today + " + i + " days current time");
@@ -210,7 +210,7 @@ exports["lang:pt"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('pt');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format((m.day() === 0 || m.day() === 6) ? '[Último] dddd [às] LT' : '[Última] dddd [às] LT'),  "Today - " + i + " days current time");
@@ -227,13 +227,13 @@ exports["lang:pt"] = {
         moment.lang('pt');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index d9b13a0a01b5668ef04826d47e42805e2504cd85..1773584e3395aa324a48b39715781b6b2e9a70b6 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:ro"] = {
                 ['D Do DD',                        '14 14 14'],
                 ['d do dddd ddd dd',               '0 0 Duminică Dum Du'],
                 ['DDD DDDo DDDD',                  '45 45 045'],
-                ['w wo ww',                        '6 6 06'],
+                ['w wo ww',                        '8 8 08'],
                 ['h hh',                           '3 03'],
                 ['H HH',                           '15 15'],
                 ['m mm',                           '25 25'],
index bcf4b386d9d124b83bad0b0ce92c40c8beb06046..05af6a0cb78471b395e71e1793dc5acabe912a38 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:ru"] = {
                 ['D Do DD',                            '14 14. 14'],
                 ['d do dddd ddd dd',                   '0 0. воскресенье вск вс'],
                 ['DDD DDDo DDDD',                      '45 45. 045'],
-                ['w wo ww',                            '6 6. 06'],
+                ['w wo ww',                            '8 8. 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
index 55b7cf1527d7213c663b6cb66b20e45218c0630d..ec53178ce2df88e9e82f226b64db5b77f53227ac 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:en"] = {
                 ['D Do DD',                            '14 14. 14'],
                 ['d do dddd ddd dd',                   '0 0. nedelja ned. ne'],
                 ['DDD DDDo DDDD',                      '45 45. 045'],
-                ['w wo ww',                            '6 6. 06'],
+                ['w wo ww',                            '8 8. 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
index fc9d59ed2bbb160d4a29fcdd28c96afbd537ce4a..49a11210ef2f9bc61078aeb969354607f4c6a7ec 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:sv"] = {
                 ['D Do DD',                            '14 14e 14'],
                 ['d do dddd ddd dd',                   '0 0e söndag sön sö'],
                 ['DDD DDDo DDDD',                      '45 45e 045'],
-                ['w wo ww',                            '6 6e 06'],
+                ['w wo ww',                            '8 8e 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -72,7 +72,7 @@ exports["lang:sv"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8e', '8e');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9e', '9e');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10e', '10e');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11e', '11e');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12e', '12e');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13e', '13e');
@@ -83,7 +83,7 @@ exports["lang:sv"] = {
         test.equal(moment([2011, 0, 18]).format('DDDo'), '18e', '18e');
         test.equal(moment([2011, 0, 19]).format('DDDo'), '19e', '19e');
         test.equal(moment([2011, 0, 20]).format('DDDo'), '20e', '20e');
-    
+
         test.equal(moment([2011, 0, 21]).format('DDDo'), '21a', '21a');
         test.equal(moment([2011, 0, 22]).format('DDDo'), '22a', '22a');
         test.equal(moment([2011, 0, 23]).format('DDDo'), '23e', '23e');
@@ -94,7 +94,7 @@ exports["lang:sv"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28e', '28e');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29e', '29e');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30e', '30e');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31a', '31a');
         test.done();
     },
@@ -184,9 +184,9 @@ exports["lang:sv"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('sv');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "Idag klockan 02:00",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "Idag klockan 02:25",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "Idag klockan 03:00",     "Now plus 1 hour");
@@ -199,10 +199,10 @@ exports["lang:sv"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('sv');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('dddd [klockan] LT'),  "Today + " + i + " days current time");
@@ -217,7 +217,7 @@ exports["lang:sv"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('sv');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('[Förra] dddd[en klockan] LT'),  "Today - " + i + " days current time");
@@ -234,13 +234,13 @@ exports["lang:sv"] = {
         moment.lang('sv');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index 3e01afd3bf586f1d3796ecae112cf5f2d996e087..87032c10afdfb28f74c027d700cc487c72c40311 100644 (file)
@@ -38,7 +38,7 @@ exports["lang:tr"] = {
                 ['D Do DD',                            '14 14\'üncü 14'],
                 ['d do dddd ddd dd',                   '0 0\'ıncı Pazar Paz Pz'],
                 ['DDD DDDo DDDD',                      '45 45\'inci 045'],
-                ['w wo ww',                            '6 6\'ncı 06'],
+                ['w wo ww',                            '8 8\'inci 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
@@ -83,7 +83,7 @@ exports["lang:tr"] = {
         test.equal(moment([2011, 0, 8]).format('DDDo'), '8\'inci', '8th');
         test.equal(moment([2011, 0, 9]).format('DDDo'), '9\'uncu', '9th');
         test.equal(moment([2011, 0, 10]).format('DDDo'), '10\'uncu', '10th');
-    
+
         test.equal(moment([2011, 0, 11]).format('DDDo'), '11\'inci', '11th');
         test.equal(moment([2011, 0, 12]).format('DDDo'), '12\'nci', '12th');
         test.equal(moment([2011, 0, 13]).format('DDDo'), '13\'üncü', '13th');
@@ -105,7 +105,7 @@ exports["lang:tr"] = {
         test.equal(moment([2011, 0, 28]).format('DDDo'), '28\'inci', '28th');
         test.equal(moment([2011, 0, 29]).format('DDDo'), '29\'uncu', '29th');
         test.equal(moment([2011, 0, 30]).format('DDDo'), '30\'uncu', '30th');
-    
+
         test.equal(moment([2011, 0, 31]).format('DDDo'), '31\'inci', '31st');
         test.done();
     },
@@ -195,9 +195,9 @@ exports["lang:tr"] = {
     "calendar day" : function(test) {
         test.expect(6);
         moment.lang('tr');
-    
+
         var a = moment().hours(2).minutes(0).seconds(0);
-    
+
         test.equal(moment(a).calendar(),                     "bugün saat 02:00",     "today at the same time");
         test.equal(moment(a).add({ m: 25 }).calendar(),      "bugün saat 02:25",     "Now plus 25 min");
         test.equal(moment(a).add({ h: 1 }).calendar(),       "bugün saat 03:00",     "Now plus 1 hour");
@@ -210,10 +210,10 @@ exports["lang:tr"] = {
     "calendar next week" : function(test) {
         test.expect(15);
         moment.lang('tr');
-    
+
         var i;
         var m;
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().add({ d: i });
             test.equal(m.calendar(),       m.format('[haftaya] dddd [saat] LT'),  "Today + " + i + " days current time");
@@ -228,7 +228,7 @@ exports["lang:tr"] = {
     "calendar last week" : function(test) {
         test.expect(15);
         moment.lang('tr');
-    
+
         for (i = 2; i < 7; i++) {
             m = moment().subtract({ d: i });
             test.equal(m.calendar(),       m.format('[geçen hafta] dddd [saat] LT'),  "Today - " + i + " days current time");
@@ -245,13 +245,13 @@ exports["lang:tr"] = {
         moment.lang('tr');
         var weeksAgo = moment().subtract({ w: 1 });
         var weeksFromNow = moment().add({ w: 1 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "1 week ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 1 week");
-    
+
         weeksAgo = moment().subtract({ w: 2 });
         weeksFromNow = moment().add({ w: 2 });
-        
+
         test.equal(weeksAgo.calendar(),       weeksAgo.format('L'),  "2 weeks ago");
         test.equal(weeksFromNow.calendar(),   weeksFromNow.format('L'),  "in 2 weeks");
     test.done();
index 7ead067a6b620e7b5ac49d10db7cea444f291514..7bcfef54c898e989ecf75a2bbed9546fa34c7319 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:zh-cn"] = {
                 ['D Do DD',                            '14 14 14'],
                 ['d do dddd ddd dd',                   '0 0 星期日 周日 日'],
                 ['DDD DDDo DDDD',                      '45 45 045'],
-                ['w wo ww',                            '6 6 06'],
+                ['w wo ww',                            '8 8 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
index 854ab3641ab9a6a48137d90a917640c81db1dc30..bba8cc4a1b5e99bde4cfcc75222f86c25d7e76e6 100644 (file)
@@ -39,7 +39,7 @@ exports["lang:zh-tw"] = {
                 ['D Do DD',                            '14 14 14'],
                 ['d do dddd ddd dd',                   '0 0 星期日 週日 日'],
                 ['DDD DDDo DDDD',                      '45 45 045'],
-                ['w wo ww',                            '6 6 06'],
+                ['w wo ww',                            '8 8 08'],
                 ['h hh',                               '3 03'],
                 ['H HH',                               '15 15'],
                 ['m mm',                               '25 25'],
index c8983dc5e120712ca5a78fd5e1d2c369ea0f1605..0d336554489b1553d3c44404a6c8e13098c1dc89 100644 (file)
@@ -162,7 +162,7 @@ exports.format = {
 
         for (var i in cases) {
             var iso = cases[i].split('-').pop();
-            var the = moment(i).format('ww');
+            var the = moment(i).format('WW');
             test.equal(iso, the, i + ": should be " + iso + ", but " + the);
         }