problem with date in k2

Support help forum dedicated to free and commerical templates for Joomla 3 and 2.5 version.
GK User
Thu May 19, 2016 9:43 pm
I have one number by date in k2 articla, does somebody know how to remove this?
User avatar
Fresh Boarder

teitbite
Mon May 23, 2016 11:55 am
Hi

I'm not sure what You have in mind. Can You please show me on Your site directly ?
User avatar
Moderator

GK User
Mon May 23, 2016 2:57 pm
http://demokracija.si/nova/index.php/ko ... rack-obama here is link, look date and you will see a problem 1, 19.05.2016 09:01 have to be 19.05.2016 09:01
User avatar
Fresh Boarder

teitbite
Thu May 26, 2016 11:03 am
Hi

I do not see this "1" while checking demo, so I think it came from K2 translation. Edit file /html/com_k2/templates/default/item.php and look for line:

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


than replace part:

Code: Select all
JText::_('K2_DATE_FORMAT_LC2')


with

Code: Select all
'd.m.Y H:i'


or any other date format using attributes from http://php.net/manual/pl/function.date.php
User avatar
Moderator


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