]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
[locale] Update dow for Konkani locales (#5676)
authorWikiDiscoverer <wiki.discoverer@gmail.com>
Sun, 13 Sep 2020 10:15:19 +0000 (15:45 +0530)
committerGitHub <noreply@github.com>
Sun, 13 Sep 2020 10:15:19 +0000 (03:15 -0700)
src/locale/gom-deva.js
src/locale/gom-latn.js
src/test/locale/gom-deva.js
src/test/locale/gom-latn.js

index 9571f9945fcfe7012cfb918b6f4c2e4db5df7b6e..075df881310b46b20632645488c8ee1317ba3b61 100644 (file)
@@ -90,8 +90,8 @@ export default moment.defineLocale('gom-deva', {
         }
     },
     week: {
-        dow: 1, // Monday is the first day of the week.
-        doy: 4, // The week that contains Jan 4th is the first week of the year.
+        dow: 0, // Sunday is the first day of the week
+        doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
     },
     meridiemParse: /राती|सकाळीं|दनपारां|सांजे/,
     meridiemHour: function (hour, meridiem) {
index a96683316ec8b503dc5c1d9d783de2cc8f35f1ab..b102594cc3c252655f7d36ff9935037677580d76 100644 (file)
@@ -90,8 +90,8 @@ export default moment.defineLocale('gom-latn', {
         }
     },
     week: {
-        dow: 1, // Monday is the first day of the week.
-        doy: 4, // The week that contains Jan 4th is the first week of the year.
+        dow: 0, // Sunday is the first day of the week
+        doy: 3, // The week that contains Jan 4th is the first week of the year (7 + 0 - 4)
     },
     meridiemParse: /rati|sokallim|donparam|sanje/,
     meridiemHour: function (hour, meridiem) {
index 70012fdd133b38e8f66394bdd1d8308b040882a5..78c62112b0ddcf626b9b4bd1a590d0b8150bbe35 100644 (file)
@@ -42,7 +42,7 @@ test('format', function (assert) {
             ['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', '7 7 07'],
             ['h hh', '3 03'],
             ['H HH', '15 15'],
             ['m mm', '25 25'],
@@ -419,8 +419,8 @@ test('calendar all else', function (assert) {
 test('weeks year starting sunday format', function (assert) {
     assert.equal(
         moment([2012, 0, 1]).format('w ww wo'),
-        '52 52 52',
-        'Jan  1 2012 should be week 52'
+        '1 01 1',
+        'Jan  1 2012 should be week 1'
     );
     assert.equal(
         moment([2012, 0, 2]).format('w ww wo'),
@@ -429,8 +429,8 @@ test('weeks year starting sunday format', function (assert) {
     );
     assert.equal(
         moment([2012, 0, 8]).format('w ww wo'),
-        '1 01 1',
-        'Jan  8 2012 should be week 1'
+        '2 02 2',
+        'Jan  8 2012 should be week 2'
     );
     assert.equal(
         moment([2012, 0, 14]).format('w ww wo'),
@@ -439,7 +439,7 @@ test('weeks year starting sunday format', function (assert) {
     );
     assert.equal(
         moment([2012, 0, 15]).format('w ww wo'),
-        '2 02 2',
-        'Jan 15 2012 should be week 2'
+        '3 03 3',
+        'Jan 15 2012 should be week 3'
     );
 });
index 65d2f04e9d43d54d6df0b9cb9600754abbd4da46..2af352c34f28a1b36a24fc47f70bef991051522f 100644 (file)
@@ -56,7 +56,7 @@ test('format', function (assert) {
             ['D Do DD', '14 14er 14'],
             ['d do dddd ddd dd', '0 0 Aitar Ait. Ai'],
             ['DDD DDDo DDDD', '45 45 045'],
-            ['w wo ww', '6 6 06'],
+            ['w wo ww', '7 7 07'],
             ['h hh', '3 03'],
             ['H HH', '15 15'],
             ['m mm', '25 25'],
@@ -433,8 +433,8 @@ test('calendar all else', function (assert) {
 test('weeks year starting sunday format', function (assert) {
     assert.equal(
         moment([2012, 0, 1]).format('w ww wo'),
-        '52 52 52',
-        'Jan  1 2012 should be week 52'
+        '1 01 1',
+        'Jan  1 2012 should be week 1'
     );
     assert.equal(
         moment([2012, 0, 2]).format('w ww wo'),
@@ -443,8 +443,8 @@ test('weeks year starting sunday format', function (assert) {
     );
     assert.equal(
         moment([2012, 0, 8]).format('w ww wo'),
-        '1 01 1',
-        'Jan  8 2012 should be week 1'
+        '2 02 2',
+        'Jan  8 2012 should be week 2'
     );
     assert.equal(
         moment([2012, 0, 14]).format('w ww wo'),
@@ -453,7 +453,7 @@ test('weeks year starting sunday format', function (assert) {
     );
     assert.equal(
         moment([2012, 0, 15]).format('w ww wo'),
-        '2 02 2',
-        'Jan 15 2012 should be week 2'
+        '3 03 3',
+        'Jan 15 2012 should be week 3'
     );
 });