-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Issue in Dob field. #28482
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
Comments
Hi @Ankush-Webkul. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
|
Hi @swathishs. Thank you for working on this issue.
|
@magento give me 2.3.5-p1 instance |
Hi @swathishs. Thank you for your request. I'm working on Magento 2.3.5-p1 instance for you |
Hi @swathishs, here is your Magento instance. |
@magento give me 2.4-develop instance |
Hi @swathishs. Thank you for your request. I'm working on Magento 2.4-develop instance for you |
Hi @swathishs, here is your Magento instance. |
Can be reproduced only on 2.3.5p1 but not on 2.4 develop instance |
✅ Confirmed by @swathishs Issue Available: @swathishs, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @swathishs and @magento-engcom-team, I was able to reproduce this issue on our instance of Magento 2.3.5-p1. The error given was: "Please enter a valid date." In /vendor/magento/module-customer/Block/Widget/Dob.php I changed the line: $escapedDateFormat = preg_replace('/[^MmDdYy\/\.\-]/', '', $dateFormat); to: $escapedDateFormat = 'M/dd/Y'; It seems the frontend validation wants this date format instead of 'M/d/Y'. Please let me know if this fixes your issue. |
@magento I am working on this |
@magento and @Ankush-Webkul |
Thank you! It really works! |
Hi @Ankush-Webkul, @chandu-pinpoint. Thank you for your report and collaboration! The related internal Jira ticket But if you still run into this problem please update or provide additional information/steps/preconditions in the Description section and reopen this issue. |
Hi @Ankush-Webkul, @chandu-pinpoint. Thank you for your report and collaboration! The related internal Jira ticket But if you still run into this problem please update or provide additional information/steps/preconditions in the Description section and reopen this issue. |
Was not fixed. 2.3.5-p1 The patch made by chandu-pinpoint is temporary fixing the issue. |
Hello @Ankush-Webkul Update based on internal Jira. |
This issue still exists in |
In admin locale except for en_US , there is still issue |
Getting an issue on the Registration page if the Dob field is enabled from admin.
https://prnt.sc/ssty7t
Preconditions (*)
Use Magento 2.3.5 instance
Steps to reproduce (*)
Expected result (*)
The Account is created with customer Dob.
Actual result (*)
The account is not created and shows and error in the Dob field that "Please Enter the correct Dob".
The text was updated successfully, but these errors were encountered: