Some troubles with date in Creativity template

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
Thu Oct 17, 2013 4:53 pm
Reply with quote
Report this post
Hi, I encounter troubles with date when using creativity. With standard joomla template 2.5, date format is displaying correctly Day Month Year in articles, but with creativity template date have been overridden by a new date format that doesn't suit my needs. Any idea?
User avatar
Fresh Boarder

GK User
Thu Oct 17, 2013 4:59 pm
Reply with quote
Report this post
Hi,
are you talking about date in articles or inside module (NSP) ?


If second answer --> News Show Pro have special date format field, please look at more details here >> https://www.gavick.com/documentation/wp ... ion-34.jpg, documentation page explain how to change %DATE format >> http://www.gavick.com/documentation/joo ... pro-gk4-2/
User avatar
Platinum Boarder

GK User
Thu Oct 17, 2013 8:29 pm
Reply with quote
Report this post
About standard articles

check this file:
gk_creativity\html\com_content\article\default.php

find all
<?php echo JHtml::_('date', $this->item->modified, JText::_('F j, Y')); ?>
it creates a date that look like this: September 24, 2013


And change it to

Code: Select all
<?php echo JHtml::_('date', $this->item->modified, JText::_('d.m.Y')); ?>



And you will get - 17.10.2013,
use this guide ( :whistle:) : http://codex.wordpress.org/Formatting_Date_and_Time
User avatar
Platinum Boarder

GK User
Sat Oct 19, 2013 7:17 am
Reply with quote
Report this post
I was talking about articles and you provide a solution. I'm wondering why you are not letting joomla do the work instead of embedding stuff in the template? Thx for the trick!
User avatar
Fresh Boarder

GK User
Sat Oct 19, 2013 8:48 am
Reply with quote
Report this post
Yes, you're right I will ask our developers.
User avatar
Platinum Boarder

GK User
Mon Oct 21, 2013 6:22 am
Reply with quote
Report this post
Hi Pawel,
I change gk_creativity\html\com_content\article\default.php
Code: Select all
<?php echo JHtml::_('date', $this->item->modified, JText::_('F j, Y')); ?> 
for
Code: Select all
<?php echo JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2')); ?>

it works like a charm but I still have the same trouble with article intro in the blog section which file should i alter?
Thx.
User avatar
Fresh Boarder

GK User
Mon Oct 21, 2013 7:43 pm
Reply with quote
Report this post
Check those files:
BLOG VIEW
gk_creativity\html\com_content\category\blog_item.php
FEATURED VIEW
gk_creativity\html\com_content\featured\default_item.php
User avatar
Platinum Boarder

GK User
Mon Oct 21, 2013 9:19 pm
Reply with quote
Report this post
Thx Pawel :D , files update with following code
Code: Select all
<?php echo JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2')); ?>
fixes the date format. I think developpers should code with this native date format :geek: . I still have problem with others variables like (category:...) that shows up in english in article and in native language (categorie:....) in the blog section :S
User avatar
Fresh Boarder

GK User
Mon Oct 28, 2013 11:33 am
Reply with quote
Report this post
Thanks,
I have informed about it our developer team.
User avatar
Platinum Boarder


cron