How to change date format

GK User
Wed Oct 15, 2014 11:34 am
Hi, can`t find right .ini file to change K2_DATE_FORMAT_LC2 date format for K2 blog.
I need it be d m Y.

I`ve changed it in
en-GB.ini
en-GB.com_k2.ini
en-GB.mod_k2_content.ini
en-GB.com_k2.j16.ini
en-GB.mod_k2.j16.ini

I tried constant language overrides in language manager.

Nothing works.

Where is the file to change?

Thanks.
User avatar
Fresh Boarder

GK User
Wed Oct 15, 2014 12:18 pm
Hi, Check also in those files: templates\gk_steakhouse\html\com_k2\templates\default
User avatar
Platinum Boarder

GK User
Wed Oct 15, 2014 12:40 pm
I did.
There is no .ini files.
And the only file with date_format is item.php.
There is two K2_DATE_FORMAT_LC2 constants in it.
But in every .ini file i could find i set K2_DATE_FORMAT_LC2="d m Y" or K2_DATE_FORMAT_LC2="%d %m %Y".
And nothing changes, i still got Tue 7 Oct, 2014
It looks like i can`t find right .ini file.
User avatar
Fresh Boarder

GK User
Wed Oct 15, 2014 12:58 pm
now i got 15 OCTOBER 2014 in index.php/blog
and Wed 15 Oct, 2014 in index.php/blog/item/


i need it be 15.10.2014
User avatar
Fresh Boarder

GK User
Wed Oct 15, 2014 1:24 pm
As I said before try to edit this file:

gk_steakhouse\html\com_k2\templates\default\category_item.php
line ~33
Code: Select all
<time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>" pubdate>
               <?php echo JHTML::_('date', $this->item->created, JText::_('j F Y')); ?>
 </time>


j F Y --> d.m.Y
User avatar
Platinum Boarder

GK User
Wed Oct 15, 2014 1:36 pm
Oh, thank you very much!
it works.

:)
User avatar
Fresh Boarder

GK User
Wed Oct 15, 2014 1:42 pm
Note somewhere this customization tip - to not lose it after next template update.
User avatar
Platinum Boarder


cron