-
AuthorPosts
-
sw42it Friend
sw42it
- Join date:
- March 2008
- Posts:
- 13
- Downloads:
- 8
- Uploads:
- 0
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
May 24, 2011 at 7:50 pm #164384Hi,
I’m using the template in an german environment with joomla 1.6.3.
Template version is 1.0.2.The Blog layout is always showing the same date 01 Jan 1970. Even if the date of the article is a different one.
Switching to english language solves the bug. Please provide a source sample which solves the problem for other languages like german.
Thanks
Stefan
khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 25, 2011 at 6:52 am #392767You try this way:
You replace this code from templatesja_graphitehtmlcom_contentfeatureddefault_item.php file
$createMonth = date('M', strtotime( $created ));
with
$createMonth = JHTML::date($this->item->created, 'M', true);
If it doesn’t work, could you give me username+password of ftp and a link to your website?sw42it Friendsw42it
- Join date:
- March 2008
- Posts:
- 13
- Downloads:
- 8
- Uploads:
- 0
- Thanks:
- 2
- Thanked:
- 1 times in 1 posts
May 26, 2011 at 8:12 am #392974Hi khoand,
send you a pm with the access data to the server.
Your code sample only corrects the month. The day and the year ist still not working correct.studiofat Friendstudiofat
- Join date:
- December 2009
- Posts:
- 26
- Downloads:
- 149
- Uploads:
- 1
- Thanks:
- 51
- Thanked:
- 3 times in 1 posts
May 26, 2011 at 7:11 pm #393054try to edit templatesja_graphitehtmlcom_contentfeatured/default_item.php about line 62
change to:
<?php if ($params->get('show_create_date')) : ?>
<span class="create clearfix">
<?php
$stringDate = JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC3'));
$arrdate = explode(" ", $stringDate);
?>
<span class="date"><?php echo $arrdate[0]; ?></span>
<span class="month-year">
<span class="month"><?php echo substr($arrdate[1], 0, 3); ?></span>
<span class="year"><?php echo substr($arrdate[2], 0, 4); ?></span>
</span>
</span>
<?php endif; ?>
<?php if (!$params->get('show_intro')) : ?>khoand Friendkhoand
- Join date:
- February 2011
- Posts:
- 4500
- Downloads:
- 0
- Uploads:
- 179
- Thanks:
- 169
- Thanked:
- 1166 times in 1060 posts
May 27, 2011 at 8:47 am #393158<em>@sw42it 242725 wrote:</em><blockquote>Hi khoand,
send you a pm with the access data to the server.
Your code sample only corrects the month. The day and the year ist still not working correct.</blockquote>You replace this code from templatesja_graphitehtmlcom_contentfeaturedd efault_item.php file
$createDay = date('d', strtotime( $created ));
$createMonth = date('M', strtotime( $created ));
$createYear = date('Y', strtotime( $created ));
with
$createDay = JHTML::date($this->item->created, 'd', true);
$createMonth = JHTML::date($this->item->created, 'M', true);
$createYear = JHTML::date($this->item->created, 'Y', true);1 user says Thank You to khoand for this useful post
-
AuthorPosts
This topic contains 6 replies, has 3 voices, and was last updated by sw42it 13 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum