Changing Date format on articles

More
10 years 3 months ago - 10 years 3 months ago #41716 by AlbinP
It is same.









Last edit: 10 years 3 months ago by AlbinP.

Please Log in to join the conversation.

More
10 years 3 months ago #41725 by ivan.milic
Does it change when you change it in original language files (not in override)?

Please Log in to join the conversation.

More
10 years 3 months ago #41732 by AlbinP
I tried with Slovenian language and with English language. With override and without. Same situation.

I can give you access to FTP and to portal. Just tell me where should i send it

Please Log in to join the conversation.

More
10 years 3 months ago #41752 by ivan.milic
Use 'Report To Moderator', also describe where we can find date displayed

Please Log in to join the conversation.

More
10 years 3 months ago #41771 by AlbinP
Sent to Report

Please Log in to join the conversation.

More
10 years 3 months ago #41778 by ivan.milic
In :

templates/hot_news_portal/html/com_content/category/blog_item.php
Code:
<?php if ($params->get('show_publish_date')) : ?> <dd class="published"> i class="fa fa-clock-o"></i> <?php echo JText::sprintf( JHTML::_('date',$this->item->publish_up, JText::_('F d'))); ?>, <?php echo JText::sprintf( JHTML::_('date',$this->item->publish_up, JText::_('Y'))); ?> </dd> <?php endif; ?>

changed to:
Code:
<?php if ($params->get('show_publish_date')) : ?> <dd class="published"> <i class="fa fa-clock-o"></i> <?php echo JText::sprintf( JHTML::_('date',$this->item->publish_up, JText::_('DATE_FORMAT_LC2'))); ?> </dd> <?php endif; ?>


In


templates/hot_news_portal/html/com_content/featured/default_item.php
Code:
<?php if ($params->get('show_publish_date')) : ?> <dd class="published"> <i class="fa fa-clock-o"></i> <?php echo JText::sprintf( JHTML::_('date',$this->item->publish_up, JText::_('F d'))); ?>, <?php echo JText::sprintf( JHTML::_('date',$this->item->publish_up, JText::_('Y'))); ?> </dd> <?php endif; ?>

changed to
Code:
<?php if ($params->get('show_publish_date')) : ?> <dd class="published"> <i class="fa fa-clock-o"></i> <?php echo JText::sprintf( JHTML::_('date',$this->item->publish_up, JText::_('DATE_FORMAT_LC2'))); ?> </dd> <?php endif; ?>


in /templates/hot_news_portal/html/com_content/article/default.php
Code:
<?php if ($params->get('show_publish_date')) : ?> <dd class="published"> <i class="fa fa-clock-o"></i> <?php echo JText::sprintf( JHTML::_('date',$this->item->publish_up, JText::_('F d'))); ?>, <?php echo JText::sprintf( JHTML::_('date',$this->item->publish_up, JText::_('Y'))); ?> </dd> <?php endif; ?>

changed to:
Code:
<?php if ($params->get('show_publish_date')) : ?> <dd class="published"> <i class="fa fa-clock-o"></i> <?php echo JText::sprintf( JHTML::_('date',$this->item->publish_up, JText::_('DATE_FORMAT_LC2'))); ?> </dd> <?php endif; ?>

Please Log in to join the conversation.

Time to create page: 0.099 seconds
Powered by Kunena Forum