-
Notifications
You must be signed in to change notification settings - Fork 9.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
Invalid date when customer validate with French locale #9743
Comments
Maybe I misunderstood what you meant, but the string "04/17/1973" should NOT be a valid date in the FR_fr locale: France uses DMY for all-numerical dates. So if validation fails with "04/17/1973" then that's correct for the French locale. |
@gsomoza : You're right. The right date should be 17/04/1973 (dd/mm/yyyy). But javascript validation fails if I input '17/04/1973' (I obtain an error under calendar "Enter a correct date"). That's another Magento2 bug I suppose. However, if I input '04/17/1973', Javascript validation succeeds, but PHP response fails, and I notice that space has been inserted in my date (as I explained on my additionnal informations on the issue above). |
Great, this is clear now, it indeed looks like a bug 👍 |
@vjacquemin-sqli Thanks for reporting this issue. Created internal issue MAGETWO-70504 to investigate and track this issue. |
Same problem with Italian locale. |
Working on this issue. |
Internal ticket to track issue progress: MAGETWO-80096 |
Hi @vjacquemin-sqli the issue has been fixed in #11067 by @joachimVT |
This issue is fixed in 2.2.1. Thanks |
Hi @vjacquemin-sqli. Thank you for your report.
The fix will be available with the upcoming 2.3.0 release. |
This issue is still happening in Magento 2.4.6 when saving customer birth day in none english date format. |
Preconditions
Steps to reproduce
Expected result
Actual result
I found in Magento\Framework\Data\Form\Filter\Date class before line 65, the date value is okay, after the l.65, date value contains space chars. I think Zend_Filter_NormalizedToLocalized "filter" method insert spaces (as thousand separators). If I ignore this line, validation succeeds.
The text was updated successfully, but these errors were encountered: