Sign in to follow this  
Followers 0
byrnef

Problem with date layout

4 posts in this topic

Hi,

 

I have a problem with the date displaying incorrectly in what I think is the message or component section of the template.  I want it to display as d M, Y but it's displaying as d F, Y.  I've tried altering the values in the language manager and in DATE_FORMAT_LC3, but it makes no difference.

 

Any help would be appreciated.

 

Thanks.

Share this post


Link to post
Share on other sites

Hello guy,

I'm so sorry for this inconvience. Please help me open files:

../templates/bt_education/html/com_content/article/default.php

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

../templates/bt_education/html/com_content/featured/default_item.php

../templates/bt_education/html/mod_bt_contentshowcase/themes/default/default.php

find and change :

<span class="month"><?php echo JHtml::_('date', $this->item->publish_up, 'F') ?></span>

to:

<span class="month"><?php echo JHtml::_('date', $this->item->publish_up, 'M') ?></span>

Best regards,

Share this post


Link to post
Share on other sites

Hi,

 

Thanks for the prompt reply!  It all worked, though the last php file didn't have the line you posted, but had this instead ....

 

<span class="bt-date-month"><?php echo JHTML::_('date', $row->created, 'F'); ?></span>

 

But I changed the F to M and it was fine.

 

Many thanks again.

Tam Pham likes this

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0