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
When having the Arabic local enabled, Dayjs has trouble formatting 12:00 pm hours of the day.
importdayjsfrom'dayjs'import"dayjs/locale/ar";dayjs.locale("ar");// The symbol `ص` is for "day hours"// 12 am is translated to `12 ص` which is correct and expected. dayjs("2024-08-18 12:00 am").format("hh:mm a")// => 12:00 ص// the `12 pm` is translated to `12 ص` which is not correct and should be translated to `12 م` which is the symbol for "night hours"dayjs("2024-08-18 12:00 pm").format("hh:mm a")// => 12:00 ص
This will confuse the user about what time of the day it is.
Expected Behavior
12:00 pm should be translated to 12:00 م using the nighttime symbol (here)
Information
Day.js Version: ^1.11.12
OS: WSL (WINDOW)
Browser: Chrome 127.0.6533.120
Time zone: GMT+03
The text was updated successfully, but these errors were encountered:
When having the Arabic local enabled, Dayjs has trouble formatting 12:00 pm hours of the day.
This will confuse the user about what time of the day it is.
Expected Behavior
12:00 pm
should be translated to12:00 م
using the nighttime symbol (here)Information
The text was updated successfully, but these errors were encountered: