Export of orders shows incorrect date format

  • Posts: 72
  • Thank you received: 0
9 years 9 months ago #165989

-- HikaShop version -- : 2.2.3

Hi,

When exporting order data to a CSV using the mass action tool, the order_created column contains the date as follows:

Saturday, 02 March 2013


When i've used the export tool in the past the order_created column has contained the date like this:

2013-02-28 12:02:06


Why is the format different when using the mass action tool? Can I change this date format somewhere?

Last edit: 9 years 9 months ago by daveturner101. Reason: wrong format

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 9 months ago #166031

Hi,

The format is indeed different, thanks to edit the file:
"administrator/components/com_hikashop/classes/massaction" function "displayByType()" and add:

$format = 'Y-m-d H:i:s';
Just before:
$square = hikashop_getDate($element->$column,$format);

The following user(s) said Thank You: daveturner101

Please Log in or Create an account to join the conversation.

  • Posts: 72
  • Thank you received: 0
9 years 9 months ago #166133

Worked a charm, thanks :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum