You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
All Arabic languages has meridiem function implemented incorrectly, the library provides the hours in 24 format and it must be mapped as below:
Describe the bug
All Arabic languages has
meridiem
function implemented incorrectly, the library provides the hours in 24 format and it must be mapped as below:English
meridiemArabic
meridiem0
-11
AM
ص
12
-23
PM
م
References:
Default Implementation is:
dayjs/src/index.js
Lines 271 to 274 in 5a108ff
Arabic implementation
dayjs/src/locale/ar-dz.js
Line 20 in 5a108ff
dayjs/src/locale/ar-iq.js
Line 21 in 5a108ff
dayjs/src/locale/ar-kw.js
Line 20 in 5a108ff
dayjs/src/locale/ar-ly.js
Line 13 in 5a108ff
dayjs/src/locale/ar-ma.js
Line 21 in 5a108ff
dayjs/src/locale/ar-sa.js
Line 20 in 5a108ff
dayjs/src/locale/ar-tn.js
Line 21 in 5a108ff
So the logic should be
Current Behaviour
An Example:
Expected behavior
Correct localized
meridiem
string asص
before 12 andم
after 12.An Example:
Information
The text was updated successfully, but these errors were encountered: