Creation date doesn´t show year
Rate this topic: 




1.00 out of 6 based on 1 vote(s)
- GK User
- Sun Nov 03, 2013 8:26 pm
- Reply with quote
- Report this post
Strange thing in article view. I don't know if it has to do with Joomla, the tempalte or K2. In article header the creation date only shows date - not year. It doesn't matter if I use Swedish or English on site.
exampe of page: http://www.cdrunda.se/rockwall/gothic-c ... power.html
exampe of page: http://www.cdrunda.se/rockwall/gothic-c ... power.html
-

- Fresh Boarder
- teitbite
- Tue Nov 05, 2013 10:17 am
- Reply with quote
- Report this post
Hi
In /html/com_k2/default/item.php at line 39 make sure the code looks exactly as shown here:
In /html/com_k2/default/item.php at line 39 make sure the code looks exactly as shown here:
- Code: Select all
<time datetime="<?php echo JHtml::_('date', $this->item->created, JText::_(DATE_W3C)); ?>"> <?php echo JHTML::_('date', $this->item->created, 'F j, Y'); ?> </time>
-

- Moderator
- GK User
- Tue Nov 05, 2013 1:25 pm
- Reply with quote
- Report this post
It Works!
The year shows up after Copy/paste of code.
Many Thanks!
The year shows up after Copy/paste of code.
Many Thanks!
-

- Fresh Boarder
- teitbite
- Wed Nov 06, 2013 5:42 pm
- Reply with quote
- Report this post
Hi
No problem. Glad I could help
No problem. Glad I could help
-

- Moderator
4 posts
• Page 1 of 1
