Skip to content

Admin > Sales > Order: Grid's "Purchase Date" column has wrong times #6509

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
heldchen opened this issue Sep 6, 2016 · 10 comments
Closed

Admin > Sales > Order: Grid's "Purchase Date" column has wrong times #6509

heldchen opened this issue Sep 6, 2016 · 10 comments
Labels
bug report Component: Sales Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed

Comments

@heldchen
Copy link
Contributor

heldchen commented Sep 6, 2016

Preconditions

  1. CE 2.1.1

Steps to reproduce

  1. make an order
  2. go to admin sales order listing

Expected result

  1. "Purchase Date" should show the correct order date

Actual result

  1. "Purchase Date" shows the correct day, month and year, but time is xx:09:00

image

real order date of first order in this listing:

image

@LucScu
Copy link

LucScu commented Sep 7, 2016

Known bug
In app/code/Magento/Sales/view/adminhtml/ui_component/sales_order_grid.xml change dateFormat to
<item name="dateFormat" xsi:type="string">MMM dd, YYYY, H:mm:ss A</item>

@heldchen
Copy link
Contributor Author

heldchen commented Sep 7, 2016

thanks @LucScu I'm closing this one and subscribing to the other issue.

@bwilmus
Copy link

bwilmus commented Feb 9, 2017

Hi,

This file has moved to:
/vendor/magento/module-sales/view/adminhtml/ui_component/sales_order_grid.xml

Do not forget to clear cache after modification of XML file.

@twistedatrocity
Copy link

The correct format is for non 24 hour time is:
<item name="dateFormat" xsi:type="string">MMM dd, YYYY, h:mm:ss A</item>

Note the lower case h for hours.... if upper case you get 24 hour format, if lower case, non 24 hour.

@goswamimehul
Copy link

This works fine in vendor folder but I am not able to extend /vendor/magento/module-sales/view/adminhtml/ui_component/sales_order_grid.xml. can anyone help me to override this xml.

@SilvanLaroo
Copy link

I also want to now how to fix this issue without changing core files.

@nigelcopley
Copy link

Since upgrading to 2.1.7 my fix for this (extending the xml) does not work. This was a bug a few versions back that should have been fixed, it's not exactly a big job

@gabriel-sf
Copy link

Is there any update on this without having to change core files?

@andidhouse
Copy link

why is that one closed? This is present in 2.1.7 - wow what a bug again. I do not know what standards the magento2 team is using...

@ZenDevMaster
Copy link

still a bug in 2.1.8

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Sales Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed
Projects
None yet
Development

No branches or pull requests