Skip to content
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

DatePicker date format does not reflect user's locale #6858

Closed
qubaji opened this issue Oct 3, 2016 · 12 comments
Closed

DatePicker date format does not reflect user's locale #6858

qubaji opened this issue Oct 3, 2016 · 12 comments
Labels
bug report Component: Translation Fixed in 2.1.x The issue has been fixed in 2.1 release line Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@qubaji
Copy link

qubaji commented Oct 3, 2016

Preconditions

Magento 2.1.1

Steps to reproduce

Find any date field in Magento, e.g. customer edit form Date of Birth, and choose a date.

Expected result

The date is in the current user's locale's standard date format.

Actual result

The date is in the format mm/dd/yyyy.

@sma09sjb
Copy link

sma09sjb commented Oct 4, 2016

I'm also experiencing this issue, the date format should be dd/mm/yyyy for UK stores. Even when i set the date format in Configuration > Catalog > Catalog > Date & Time Custom Options, and set the default country to UK, if i try and set the dob field against a customer to the 10th April i.e. 10/04/1991, the datepicker selects october as the month and the 4th as the day,

image

if i go ahead and save the date in the above format, the grid shows Apr 10, 1991 (which is correct), but then when i edit this customer again, the date is loaded in as 04/10/1991.

image

There is also an issue when importing customers with the uk date format,

i.e. customer with dob 12/02/1941 will be imported with a dob of Dec 2, 1941 which is wrong, the import process also assumes the US date format.

@sma09sjb
Copy link

sma09sjb commented Oct 10, 2016

Hi,

Can anyone provide an update on this, i see it's been marked as a bug. Is this a known issue?

Regards,

Sophie

@dthampy dthampy added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Oct 21, 2016
@JacobDrummond
Copy link

@sma09sjb,

I had a similar issue with Date fields in #6323.

@mmansoorebay pushed two commits (#1, #2) to rectify the issue. Do these fix your issue?

@dthampy
Copy link
Contributor

dthampy commented Oct 21, 2016

internal jira ticket has been created -MAGETWO-59937

@Ctucker9233
Copy link

I have a similar issue I described here #5943 , still waiting for resolution. The newsletter queue time does not reflect my local time. I tried the commits referenced, but it does not solve my issue.

@sma09sjb
Copy link

@JacobDrummond we'd like to avoid modifying the core code files if possible. Any ideas when this fix will be part of an official release?

@magento-engcom-team magento-engcom-team added 2.1.x Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Component: Translation labels Sep 11, 2017
@magento-team
Copy link
Contributor

Internal ticket to track issue progress: MAGETWO-80096

@magento-engcom-team
Copy link
Contributor

Hi @qubaji the issue has been fixed in #11067 by @joachimVT. The fix will be available in 2.2.1

@magento-engcom-team magento-engcom-team added Fixed in 2.1.x The issue has been fixed in 2.1 release line ready for backport labels Oct 6, 2017
@digvijay2017
Copy link

Not fixed in 2.2.1. Very bad.

magento2-1-1

@okorshenko
Copy link
Contributor

Hi @qubaji. Thank you for your report.
The issue has been fixed in magento-engcom/magento2ce#1353 by @magento-engcom-team in 2.3-develop branch
Related commit(s):

The fix will be available with the upcoming 2.3.0 release.

@ziofonta
Copy link

still having this issue in 2.3.3 in filters (i.e. sales order grid filter)

@Aquive
Copy link

Aquive commented Jun 9, 2021

Still present in M2.4.0

mmansoor-magento pushed a commit that referenced this issue Aug 10, 2021
[Condor] Fixes for 2.4 (pr141) (2.4.3-develop)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Translation Fixed in 2.1.x The issue has been fixed in 2.1 release line Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests