- Posts: 11
COMMUNITY FORUM
Date format
- thrinodos
- Topic Author
- Offline
- New Member
Less
More
14 years 10 months ago #75675
by thrinodos
Date format was created by thrinodos
At the moment, the date format in the category item view is "Wednesday, 18 November 2009 08:21".
In which file shall i find the PHP function to change the way this looks?
In which file shall i find the PHP function to change the way this looks?
Please Log in or Create an account to join the conversation.
- thrinodos
- Topic Author
- Offline
- New Member
Less
More
- Posts: 11
14 years 10 months ago #75676
by thrinodos
Replied by thrinodos on topic Date format
anyone??? is this so difficult?
Please Log in or Create an account to join the conversation.
- olsen
- Offline
- Elite Member
- Joomla and K2 Freelancer
14 years 10 months ago #75677
by olsen
Didn't solve your issues?? Why dont you consider hire me? Email me or contact me www.xevedigital.com for details
Replied by olsen on topic Date format
here:
span class="catItemDateCreated"
?php echo JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC2')); ?
/span
span class="catItemDateCreated"
?php echo JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC2')); ?
/span
Didn't solve your issues?? Why dont you consider hire me? Email me or contact me www.xevedigital.com for details
Please Log in or Create an account to join the conversation.
- andre.balian
- Offline
- New Member
Less
More
- Posts: 7
14 years 5 months ago #75678
by andre.balian
Replied by andre.balian on topic Date format
That doesn't help.
Where does one change the 'DATE_FORMAT_LC2' settings???
Is that in a language file or something?
====== update ======
I found K2_DATE_FORMAT in the k2 the language file, but not 'DATE_FORMAT_LC2'
A quick web search brings me to this though:
forum.joomla.org/viewtopic.php?p=2009155
in the en-GB.ini file you can simply edit the format for LC2, or edit the k2 template to call a different preset format.
Hope this helps.
Where does one change the 'DATE_FORMAT_LC2' settings???
Is that in a language file or something?
====== update ======
I found K2_DATE_FORMAT in the k2 the language file, but not 'DATE_FORMAT_LC2'
A quick web search brings me to this though:
forum.joomla.org/viewtopic.php?p=2009155
in the en-GB.ini file you can simply edit the format for LC2, or edit the k2 template to call a different preset format.
Hope this helps.
Please Log in or Create an account to join the conversation.
- FuturOn
- Offline
- New Member
Less
More
- Posts: 4
13 years 9 months ago #75679
by FuturOn
Replied by FuturOn on topic Date format
You can change this in the basic language file of Joomla. Not the K2 language file but just the Joomla en-GB.ini file.
Regards,Rob
Andre Balian said:
That doesn't help.
Where does one change the 'DATE_FORMAT_LC2' settings???
Is that in a language file or something?
====== update ======
I found K2_DATE_FORMAT in the k2 the language file, but not 'DATE_FORMAT_LC2'
A quick web search brings me to this though:
forum.joomla.org/viewtopic.php?p=2009155
in the en-GB.ini file you can simply edit the format for LC2, or edit the k2 template to call a different preset format.
Hope this helps.
Regards,Rob
Andre Balian said:
That doesn't help.
Where does one change the 'DATE_FORMAT_LC2' settings???
Is that in a language file or something?
====== update ======
I found K2_DATE_FORMAT in the k2 the language file, but not 'DATE_FORMAT_LC2'
A quick web search brings me to this though:
forum.joomla.org/viewtopic.php?p=2009155
in the en-GB.ini file you can simply edit the format for LC2, or edit the k2 template to call a different preset format.
Hope this helps.
Please Log in or Create an account to join the conversation.
- Kyle Ledbetter
- Offline
- New Member
Less
More
- Posts: 3
13 years 8 months ago #75680
by Kyle Ledbetter
Replied by Kyle Ledbetter on topic Date format
it's in /components/com_k2/templates/default/category_item.php
instead of hacking this core file you can copy it to /templates/YOURTEMPLATE/html/com_k2/templates/blog/category_item.php
after that make your edits and when you're editing the params for this category in K2 you'll see a new template in the dropdown named "blog"
instead of hacking this core file you can copy it to /templates/YOURTEMPLATE/html/com_k2/templates/blog/category_item.php
after that make your edits and when you're editing the params for this category in K2 you'll see a new template in the dropdown named "blog"
Please Log in or Create an account to join the conversation.