globalizejs / globalizejs/globalize
parseDate() doesn't accept its own formatDate() output in all the formats of "ar" locale/culture
Open
bug
date module
- Dominant language
- JavaScript
- Stars
- 4.8k
- Forks
- 585
- PR merge metrics
- No merged PRs in 30d
Description
Generally Globalize library's parseDate() should always accept the output of its own formatDate(). But this fails for globalize.culture.ar.js.
Globalize.formatDate(new Date(), { 'raw': 'yyyy-MM-dd HH:mm:ss' }) return "٢٠١٨-١١-٠١ ١٣،٢٧،١٧"
Even if we pass the return value from above to parseDate it cant be accepted and retruns 'null'-
Globalize.parseDate("٢٠١٨-١١-٠١ ١٣،٢٧،١٧", { 'raw': 'yyyy-MM-dd HH:mm:ss' }) return nulll
Contributor guide
Assessment
This issue has not been assessed yet.