Download Free Exentions & Discussion

TOPIC: How to display the Hour in Latest News Timeline

How to display the Hour in Latest News Timeline 6 years 4 months ago #8964

Dear all,
I'm using the free Latest News Timeline. Goo work ! Can you please help me to display the article publication hour in complement to the date ?
Thank you all.
The administrator has disabled public write access.

How to display the Hour in Latest News Timeline 6 years 4 months ago #8965

  • caselock
  • caselock's Avatar
  • OFFLINE
  • Administrator
  • Posts: 330
  • Thank you received: 32
  • Karma: 2
Hello, thanks for using our module!
please change on code with path: root /modules/mod_jlatest_timeline/tmpl/ default_ajax.php line 18
replace:
<time class="item-time label label-info" datetime="<?php echo JHtml::_('date', $item->created, 'c'); ?>"><?php echo JHtml::_('date', $item->created, JText::_($params->get('show_date_format', 'DATE_FORMAT_LC3'))) ;?>
            </time>
with:
<time class="item-time label label-info" datetime="<?php echo JHtml::_('date', $item->publish_up, 'c'); ?>"><?php echo JHtml::_('date', $item->publish_up, JText::_($params->get('show_date_format', 'DATE_FORMAT_LC3'))) ;?>
            </time>
The administrator has disabled public write access.
Time to create page: 0.100 seconds