- Posts: 2
Postings
You can freely browse the forum and post in the community forum.
However, you need a valid license to write posts for support (own a valid commercial software license or have purchased a support membership).
Posts only show once reviewed. This is mainly preventive to keep spam away. Thank you for your understanding!
Change date format
- signe
-
Topic Author
- New Member
-
Less
More
IP: 188.183.83.130
13 years 11 months ago #1391
by signe
Change date format was created by signe
Hi,
I am trying to change the date format for the module. As of now it shows "12 december 2012", but I want it to show "12.12.12".
I found these lines in the modules' template file, but editing it doesn't change anything:
Am I missing something?
I am trying to change the date format for the module. As of now it shows "12 december 2012", but I want it to show "12.12.12".
I found these lines in the modules' template file, but editing it doesn't change anything:
Code:
if ($show_date == 'date') {
$div_extra .= JHTML::_('date', $item->date, JText::_('DATE_FORMAT_LC3'));
}
Am I missing something?
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 212.198.134.5
13 years 11 months ago #1392
by admin
Olivier.
Replied by admin on topic Re: Change date format
Hello,
what you have to do is to go into your Joomla! language file (example: en-GB.ini) and change the key DATE_FORMAT_LC3 to your liking. Note that this is not the perfect solution, as it can modify other extensions who use the same key.
What I would suggest is create another key and add it in the language manager overrides (assuming you have Joomla! 2.5+). Then replace the above key by the one you have created.
what you have to do is to go into your Joomla! language file (example: en-GB.ini) and change the key DATE_FORMAT_LC3 to your liking. Note that this is not the perfect solution, as it can modify other extensions who use the same key.
What I would suggest is create another key and add it in the language manager overrides (assuming you have Joomla! 2.5+). Then replace the above key by the one you have created.
Olivier.
- signe
-
Topic Author
- New Member
-
Less
More
- Posts: 2
IP: 188.183.83.130
13 years 11 months ago #1393
by signe
Replied by signe on topic Re: Change date format
Perfect, thank you
- admin
-
- Administrator
-
Less
More
- Posts: 1931
IP: 212.198.134.5
13 years 11 months ago #1394
by admin
