We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ar-sa
Describe the bug Use ar-sa locale in moment. If use arabic date with ١٢٣٤٥٦٧٨٩٠ number date going to invalid.
١٢٣٤٥٦٧٨٩٠
To Reproduce Set ar-sa locale
const testDate = '٧ فبراير ٢٠٢٣ ، ٢:٠٠ م'; moment.locale('ar-sa'); const momentInst = moment(testDate); console.log(momentInst.isValid()); // return false
Expected behavior Date might be valid
Additional context It look like need convert also month name and etc. to en locale. Always put en date to moment. https://github.com/moment/moment/blob/develop/locale/ar-sa.js#L96
en
Maybe authors arabic locale know this issue @marwahaha @ichernev
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Use
ar-sa
locale in moment. If use arabic date with١٢٣٤٥٦٧٨٩٠
number date going to invalid.To Reproduce
Set
ar-sa
localeExpected behavior
Date might be valid
Additional context
It look like need convert also month name and etc. to
en
locale. Always puten
date to moment.https://github.com/moment/moment/blob/develop/locale/ar-sa.js#L96
Maybe authors arabic locale know this issue
@marwahaha @ichernev
The text was updated successfully, but these errors were encountered: