Where can I change the time format?

More
13 years 4 months ago #20797 by ivan.milic
language\en-GB\en-GB.ini

Please Log in to join the conversation.

More
13 years 4 months ago #20799 by racewolf
I tried to replace line:<DATE_FORMAT_LC2="l, d F Y H:i"> in en-GB.ini
with:
<DATE_FORMAT_LC2="%a, %d %b %Y">
and
<DATE_FORMAT_LC2="l, d f Y">
No effect.

Please Log in to join the conversation.

More
13 years 4 months ago #20805 by milos
It's not in language files for Responsive template, but in template override files. In example, to edit the blog item's date format, edit file /templates/hot_responsive/html/com_content/category/blog_item.php and change line
Code:
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('d F Y'))); ?>

Here, 'd f Y' represents date format. You can also edit other template overrides, for the articles or featured articles using similar method.

Please Log in to join the conversation.

More
13 years 4 months ago #20807 by racewolf
Can you tell me exactly file? please forgive my stupid, I've searched over and over again, still can't find the position.

I don't want to show time, only date as I said before.

Thank you very much!

Please Log in to join the conversation.

More
13 years 4 months ago #20808 by milos
File is this:

/templates/hot_responsive/html/com_content/category/blog_item.php

The code I mentioned is around line 104.

Please Log in to join the conversation.

More
13 years 4 months ago #20809 by racewolf
I replace the line 104:
Code:
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('d F Y'))); ?>

With:
Code:
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('d f Y'))); ?>

and:
Code:
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2'))); ?>

Still change nothing. and this line have not WEEKDAY and TIME description, but the weekday just display before date and the time after date

in my website front end.

Please Log in to join the conversation.

Time to create page: 0.233 seconds
Powered by Kunena Forum