Full date needed

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
Sun Aug 17, 2014 3:00 pm
Reply with quote
Report this post
In template Publisher under article title, date format is month and day. I need year too. I have allready overrided all date-related strings to d F Y without result. How can I change it ?

Link : www.kinesiologue-paris.fr/index.php/com ... er-choisir
User avatar
Fresh Boarder

GK User
Mon Aug 18, 2014 3:44 pm
Reply with quote
Report this post
You mean Joomla article or K2 item? Did you modify the article view file where this date is specified?
User avatar
Platinum Boarder

GK User
Wed Aug 27, 2014 7:51 pm
Reply with quote
Report this post
The date is from K2 Item. Creation and publication date fields are correctly filled by Joomla with a full date (year-month-day) - but I'm not sure of what you mean with your second question. The case is exactly the same on your demo site for item Snowbasin is now open, date is 4 july, I would prefer 4 july 2014. See:
http://demo.gavick.com/joomla25/publish ... Itemid=424
User avatar
Fresh Boarder

GK User
Fri Aug 29, 2014 11:17 am
Reply with quote
Report this post
You need to K2 item view in gk_storebox/html/com_k2/templates/default/item.php and find this part:

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


and then replace it to :

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

GK User
Fri Aug 29, 2014 4:00 pm
Reply with quote
Report this post
It works fine. Dear Bkrztuk (which is quite uneasy to pronounce :) ) thank you very much!
User avatar
Fresh Boarder

GK User
Mon Sep 01, 2014 10:49 am
Reply with quote
Report this post
Yes I know that my username looks strange for some languages :)
User avatar
Platinum Boarder


cron