Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

date format pdf-ticket
(1 viewing) (1) Guest
Electronic tickets component for Joomla! Ticket sales, printing and checking.

If your topic falls within one of the subcategories, then please post it directly there. Post to this parent category only if your question does not match any subcategory topic.
  • Page:
  • 1

TOPIC: date format pdf-ticket

date format pdf-ticket 11 years, 10 months ago #36535

Dear sirs,
we need for your pdf-tickets the german date format dd.mm.yyyy. Unfortunately the date format on PDF ist the british/american yyyy-mm-dd. How can I change this? On the webpage the date format is how I need, only on the PDF it's "wrong".

Can anybody help?

Thank you very much!
The topic has been locked.

Re: date format pdf-ticket 11 years, 10 months ago #36558

  • maju
  • OFFLINE
  • Posts: 1107
Hello,

This is really good question. You can set it only manually by changing php code.
Find {project_root}/administrator/components/com_vmeticket/helpers/helper.php and around line 110 is this row:
return self::getUtcTime("Y-m-d G:i", $time);


You need to modify Y-m-d string to j.n.Y or d.m.Y. "j" and "n" are days and months without leading zeros. More about date formatting on php date manual.

Is this helpful for you?

We will try to add there some option in administration for date format. It should be in next 2 versions.
ARTIO Support Team
The topic has been locked.

Re: date format pdf-ticket 11 years, 10 months ago #36569

Thank you very much!

Around line 110 there was no such code.
But around line 70 I found this function:

function dateTimeFormat ($time = null)
{
if ($time == null){
$time = time();
}
 
return date("Y-m-d G:i", $time);
}



I modified Y-m-d to d.m.Y as you've described - an it worked!

regards,
raedlea
The topic has been locked.
  • Page:
  • 1
Moderators: pedu
User Login Empty