Skip to content

Commit 03c8b42

Browse files
authored
[locale] (ar-ma) adjust dow, doy to match fr (#5609)
1 parent 11cd8b4 commit 03c8b42

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/locale/ar-ma.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default moment.defineLocale('ar-ma', {
4949
yy: '%d سنوات',
5050
},
5151
week: {
52-
dow: 6, // Saturday is the first day of the week.
53-
doy: 12, // The week that contains Jan 12th is the first week of the year.
52+
dow: 1, // Monday is the first day of the week.
53+
doy: 4, // The week that contains Jan 4th is the first week of the year.
5454
},
5555
});

src/test/locale/ar-ma.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ test('format', function (assert) {
5656
['D Do DD', '14 14 14'],
5757
['d do dddd ddd dd', '0 0 الأحد احد ح'],
5858
['DDD DDDo DDDD', '45 45 045'],
59-
['w wo ww', '8 8 08'],
59+
['w wo ww', '6 6 06'],
6060
['h hh', '3 03'],
6161
['H HH', '15 15'],
6262
['m mm', '25 25'],
@@ -417,11 +417,11 @@ test('calendar all else', function (assert) {
417417
);
418418
});
419419

420-
test('weeks year starting sunday formatted', function (assert) {
420+
test('weeks year starting monday formatted', function (assert) {
421421
assert.equal(
422422
moment([2011, 11, 31]).format('w ww wo'),
423-
'1 01 1',
424-
'Dec 31 2011 should be week 1'
423+
'52 52 52',
424+
'Dec 31 2011 should be week 52'
425425
);
426426
assert.equal(
427427
moment([2012, 0, 6]).format('w ww wo'),
@@ -430,8 +430,8 @@ test('weeks year starting sunday formatted', function (assert) {
430430
);
431431
assert.equal(
432432
moment([2012, 0, 7]).format('w ww wo'),
433-
'2 02 2',
434-
'Jan 7 2012 should be week 2'
433+
'1 01 1',
434+
'Jan 7 2012 should be week 1'
435435
);
436436
assert.equal(
437437
moment([2012, 0, 13]).format('w ww wo'),
@@ -440,7 +440,7 @@ test('weeks year starting sunday formatted', function (assert) {
440440
);
441441
assert.equal(
442442
moment([2012, 0, 14]).format('w ww wo'),
443-
'3 03 3',
444-
'Jan 14 2012 should be week 3'
443+
'2 02 2',
444+
'Jan 14 2012 should be week 2'
445445
);
446446
});

0 commit comments

Comments
 (0)