-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Magento 2.1.1 Invalid input date format 'Invalid date' #6831
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
I experience this error on Magento ver. 2.1.3 (PHP 7.0.13). |
This issue is killing me! |
May I add that you don't even need to create your own listing using UI components.
Expected result:
Actual result:
Additional details
Notice the value for Conclusion: |
I also have same problem while creating new product. While adding new product if 'Set Product as New FROM DATE to TO DATE', 'Schedule update FROM DATE to TO DATE', 'Special Price FROM DATE to TO DATE' any of the field have blank date then i get invalid date error and can not add product. |
In 2.1.1 we were able to fix the problem by updating the interface_locale back to en_US for all affected admin users.
Clearly not a permanent solution, but better then the error. |
The bug is in the static content that Magento create for performace issue: pub\static\adminhtml\Magento\backend{locale}\Magento_Ui\js\lib\validation\rules.js In this file there are more rules about the validation of the date.
Below there is another rule that checks the date value without considering the locale format:
Replacing the function of the "validate-date" rule with the function of the "dateITA" (if the locale is it_IT) rule, the validation problem is resolved. |
Internal ticket to track issue progress: MAGETWO-80096 |
Hi @Nerogee the issue has been fixed in #11067 by @joachimVT. The fix will be available in 2.2.1 |
@digvijay2017 i hope this module help to you and any body. |
I confirm issue. My version 2.2.1 |
@gianiaco fixed. thanks |
Hi @bahramdavodi After installing your module, I am not getting the other date format in calendar. Calendar is always showing the US date format, because in your function, you have added 'en_US' hard coded. I think, it's not a proper solution.
|
@digvijay2017 this problem is with libicu in centos. magento work well in the Ubuntu and Debian or Mac OS well. i'm writting a new module for this problem. when this extension is finished, i published it. thanks for you |
Hi @Nerogee. Thank you for your report.
The fix will be available with the upcoming 2.3.0 release. |
Still experiencing in 2.2.3 |
Also experiencing in 2.2.3, managed to fix it by switching my locale to en_US from en_GB but that's not a fix Magento. |
I am getting the same error in magento 2.3.5 |
Preconditions
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: