Lates news + Change date format to 09/04/13

Is there a way to change the date format to something like 09/04/13.

Thanks!
11 years 2 months ago #1 by Jon

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

I ran into the same problem.
As far as I can see, you cannot change it the way you want it via the GUI.
You'll have to change the source code.
In the file 'default.php' you will find 6 case statements.
I picked the one that looked like (line #146 in v2.1.0):
echo JHTML::_('date', htmlspecialchars( $item->created ),'H:i', $offset); // ' hour:minute
In your case change the 'H:i' part to 'd/m/y' and you're done!

It works for me, but you have to apply the change again when the module is upgraded.:(

@Developers:
Perhaps development could build in option in the GUI to use a free format text so you can type in any combination like the one described above. This would make the date/time fomat more flexible.

Cheers!:)
10 years 11 months ago #2 by Olivier

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

  • Posted by TemplatePlazza (5263) Offline
zvz,
Thanks for the sharing ;)
10 years 11 months ago #3 by TemplatePlazza

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

Powered by Kunena Forum