-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Time validation not working properly for languages does not have AM/PM #2442
Comments
@iamkun I think the problem is in Also there are some locales that have more than two periods, not only AM/PM, for example |
For other locales, there is no value in between 11 and 12 so it should not be a problem. This problem will come only for three languages as of now. 'zh', 'zh-cn', 'zh-tw' |
Time formatting not working properly for languages that has different value apart from AM and PM for meridiem.
Ex:
Japanese Language:
Current:
dayjs('9:00 午後', 'h:mm A', 'ja').format('h:mm A') - 9:00 午前 (Wrong)
The value should be like below.
dayjs('9:00 午後', 'h:mm A', 'ja').format('h:mm A') - 9:00 午後 (Correct)
Information
Day.js Version: 1.11.9,
OS: MacOs
The text was updated successfully, but these errors were encountered: