K2 item archive wrong date

Responsive community-minded music Joomla template with JomSocial extension support.
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Fri Nov 28, 2014 6:56 pm
Reply with quote
Report this post
Oscar, any idea on this?

The dates appear correct on my news page...
http://tompetty.rocks/news

I created an archive, using the k2 tools module and I don't see any date setting, but it seems to only show today's date in the archive...
http://tompetty.rocks/news/itemlist/dat ... 11?catid=8

Any idea on how to make "date created" appear in the archive?

Thanks!
User avatar
Gold Boarder

teitbite
Mon Dec 01, 2014 10:32 am
Reply with quote
Report this post
Hi

I'm just checking the dates and they are different than today's date. Can You please give me some more detaild about what You have in mind ?
User avatar
Moderator

GK User
Sat Dec 06, 2014 7:36 pm
Reply with quote
Report this post
Hey Teitbite,

When I go to my main News page...
http://tompetty.rocks/news

And then click on any of the months in News Archives (on right sidebar)
The dates come up as today's dates.

I'd like them to be the date the article was created like on the actual news page.

Thanks!
User avatar
Gold Boarder

teitbite
Mon Dec 08, 2014 4:44 pm
Reply with quote
Report this post
Hi

In file /html/com_k2/templates/generic.php in line 53 I've replaced:

Code: Select all
                                         <time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>"><?php echo JHTML::_('date', $this->item->created, JText::_('j')); ?><span><?php echo JHTML::_('date', $this->item->created, JText::_('M')); ?></span></time>



with

Code: Select all
                                         <time datetime="<?php echo JHtml::_('date', $item->created, JText::_(DATE_W3C)); ?>"><?php echo JHTML::_('date', $item->created, JText::_('j')); ?><span><?php echo JHTML::_('date', $item->created, JText::_('M')); ?></span></time>

User avatar
Moderator

GK User
Mon Dec 08, 2014 8:56 pm
Reply with quote
Report this post
You rock Teitbite! Thanks man.
User avatar
Gold Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.