Skip to content

Entity dates don't save properly #10871

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

Closed
royvanos opened this issue Sep 13, 2017 · 1 comment
Closed

Entity dates don't save properly #10871

royvanos opened this issue Sep 13, 2017 · 1 comment
Labels
bug report duplicate Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed

Comments

@royvanos
Copy link

royvanos commented Sep 13, 2017

Preconditions

  1. Magento 2.1.8
  2. MySQL 5.6.37

Steps to reproduce

  1. Any Magento 2.1.8 installation
  2. Admin interface language set to nl_NL (Dutch)
  3. Create a product with any special date range and save it, the date can't be the same as the current day

Expected result

  1. Product special price range should still be the same

Actual result

  1. Product special price dates show the current date

There also is a javascript error whenever a date object tries to be instanciated: Error creating Date object from string.

After a bit of debugging it looks like the jquery-ui-timepicker-addon.js tries to instanciate a date object using the date format that belongs to the set adminhtml locale (DD-MM-YYYY in my case), it seems like the addon can't handle any date formats other than YYYY-MM-DD (which is understandable) but Magento injects a date using the corresponding date format for the set adminhtml locale, setting the adminhtml locale to en_US works fine.

This seems to happen to every date field there is.

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Sep 13, 2017
@orlangur
Copy link
Contributor

Duplicate of #10580 and a bunch of other issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report duplicate Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed
Projects
None yet
Development

No branches or pull requests

3 participants