Questions about Payment Form extension

Payments Export - Percentage sign in date field

  • Nathan Morrow
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 8 months ago #33015 by Nathan Morrow
Hi Tuan,

I noticed when using the Export Payments feature that the date field is exporting with percentage signs in front of the numbers. For example:

%07-%03-%2013

I was able to fix this by changing line 280 of controller.php from:
Code:
$results_arr[]= JHTML::_('date', $r->created_date, '%m-%d-%Y');

to
Code:
$results_arr[]= JHTML::_('date', $r->created_date, 'm-d-Y');

I don't think the percentage signs are required for date formatting any more.

Being that I'm in Australia I also changed the date format to 'd-m-Y'.

It would be good in a future version if this field in the export could use the formatting settings from the Configuration area.

Cheers

Nathan

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

More
11 years 8 months ago #33063 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Payments Export - Percentage sign in date field
Thanks Nathan. I will check and update the code in the extension to use the date format from configuration. Nice find :).

Tuan

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

Moderators: Tuan Pham Ngoc