Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

[SOLVED] Article "Last updatet" date is wrong
(1 viewing) (1) Guest
Userguide, Report bugs, New Ideas...
  • Page:
  • 1

TOPIC: [SOLVED] Article "Last updatet" date is wrong

[SOLVED] Article "Last updatet" date is wrong 10 years, 4 months ago #14617

  • rymy
  • OFFLINE
  • Single Product
  • Junior Boarder
  • Posts: 39
  • Karma: 0
Hi,
Every article in default configuration of SJ News template has an "Last updated" information (above picture) which did not corrersponds with real "last update". "Last update" always points to today date. How to fix it?

Thanks!
The topic has been locked.

Re: Article "Last updatet" date is wrong 10 years, 4 months ago #14673

Dear rymy,

Please go to your_site\templates\sj_news\html\com_content\article\default.php and find:

<?php $this->item->modified = date("d.m.Y");?>
            <?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHTML::_('date',$this->item->modified, date("d.m.Y"))); ?>


=>

							
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHTML::_('date',$this->item->modified, 'd F Y')); ?>


Thanks!
The topic has been locked.
The following user(s) said Thank You: rymy

Re: Article "Last updatet" date is wrong 10 years, 4 months ago #14676

  • rymy
  • OFFLINE
  • Single Product
  • Junior Boarder
  • Posts: 39
  • Karma: 0
Thank You, problem is SOLVED.
The topic has been locked.

Re: Article "Last updatet" date is wrong 10 years, 3 months ago #16164

To note. There is a similar problem with the date of creation.
In addition, the calendar icons are not displayed.
May be better to replace:

-for modified date
<?php /*?><i class="icon-calendar"></i> <?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?><?php */?>
<?php $this->item->modified = date("d.m.Y");?>
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHTML::_('date',$this->item->modified, date("d.m.Y"))); ?>

--->
<i class="icon-calendar"></i> <?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>



-for created date
<?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC'))); ?>


--->
<i class="icon-calendar"></i> <?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC3'))); ?> 
The topic has been locked.
  • Page:
  • 1
Time to create page: 0.20 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes