Support

Home Forums Event Espresso Premium Invoice Date wrong format

Invoice Date wrong format

Posted: June 6, 2013 at 11:17 pm

Viewing 4 reply threads


studiomedia

June 6, 2013 at 11:17 pm

The date listed on the invoice is in the wrong format. So under the table section where it says “Event & Attendee” with the name of the event, the date in the square brackets [ ] are showing US date format, whereas I need it to be dd-mm-yyyy. All my date settings in WordPress are correct. It is only the invoice I would like to adjust.

 

Thankyou.


Dean

June 7, 2013 at 2:23 am

Hi,

Sorry about that, I have already raised a developer ticket to look into this as for some reason the date is hardcoded in whereas all other dates use the default WordPress dating system. When it is resolved it will be added into the next closest update.


studiomedia

June 10, 2013 at 5:40 pm

Hi Dean,

Thanks for the follow up! I’ll keep my eye out for the update. In the meantime, can you point me to the file in question to alter this hard coded date (if its possible?).


Dean

June 11, 2013 at 12:19 am

Hi,

Sure, its in event-espresso/gateways/invoice/template.php

It is around line 163 and this is the line in question

pdftext($tmp_attendee["event_name"] . "[" . date('m-d-Y', strtotime($tmp_attendee['start_date'])) . "]") . ' >> '

Changing it to

pdftext($tmp_attendee["event_name"] . "[" . date(get_option('date_format'), strtotime($tmp_attendee['start_date'])) . "]") . ' >> '

should get you the right format (based on WP’s date format).


studiomedia

June 11, 2013 at 12:50 am

Perfect worked a treat, thanks for your help!

Viewing 4 reply threads

The support post ‘Invoice Date wrong format’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso