Forums / Managing Customers and Orders / customer's order invoice purchase date -- can I add the time too?

customer's order invoice purchase date -- can I add the time too?

Views: 2,362

Results 1 to 4 of 4
3 Jan 2011, 5:40 AM
#1
george_usa avatar

george_usa

New Zenner

Join Date:
Nov 2010
Posts:
37
Plugin Contributions:
0

customer's order invoice purchase date -- can I add the time too?

i was wondering if there'll be any advice offered for this help needed.

at top-right corner of customer's order invoice, there's purchase date, instead of the date only, could it display the date and time together? if so, how?

advice on this help needed is highly appreciated.

30 Mar 2011, 2:19 AM
#2
skip6467 avatar

skip6467

New Zenner

Join Date:
Aug 2010
Posts:
5
Plugin Contributions:
0

Re: customer's order invoice purchase date -- can I add the time too?

I would like to know this as well. Have searched the forum and found no answers.

7 Apr 2011, 10:35 PM
#3
fepb avatar

fepb

New Zenner

Join Date:
Mar 2007
Posts:
75
Plugin Contributions:
0

Re: customer's order invoice purchase date -- can I add the time too?

This may not be the best way to do it but worked for me:

/admin/includes/languages/english.php

I changed:

define('DATE_FORMAT_LONG', '%A %d %B, %Y');

to:

define('DATE_FORMAT_LONG', '%A %d %B, %Y, %I:%M %p');

This will change order date to also display time on the orders page where zen_date_long is called. (This is good for my store because we do a lot of time-sensitive orders and time of order is important.)

The same can be done on the catalog end to display the time in customer order history.

PHP Time/Date format:
http://php.net/manual/en/function.strftime.php

7 Apr 2011, 10:39 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: customer's order invoice purchase date -- can I add the time too?

If you have any concern about where else this might show up, you can search in Tools > Developers Toolkit. Paste DATE_FORMAT_LONG in the lower left box, select all files - catalog and search. This will show you all files where that format is used.
You might want to do the same for zen_date_long.