-
AuthorPosts
-
luciffere Friend
luciffere
- Join date:
- January 2008
- Posts:
- 103
- Downloads:
- 3
- Uploads:
- 17
- Thanks:
- 5
- Thanked:
- 3 times in 1 posts
April 21, 2011 at 6:27 am #163047Hello agein.
Another problem with TELINE IV
The date of a article in first page, published in janewspro is corect, but same article, in the category K2 view is not corect. Same article in item view mode the date is corect.- luciffere Friend
luciffere
- Join date:
- January 2008
- Posts:
- 103
- Downloads:
- 3
- Uploads:
- 17
- Thanks:
- 5
- Thanked:
- 3 times in 1 posts
April 21, 2011 at 2:01 pm #387507This problem are in all joomlart K2 themes where are used the code:
<?php
$createDay = date('d', strtotime( $this->item->created));
$createMonth = date('M', strtotime( $this->item->created));
$createYear = date('Y', strtotime( $this->item->created));
?>Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
April 22, 2011 at 9:01 am #387617<em>@luciffere 235655 wrote:</em><blockquote>This problem are in all joomlart K2 themes where are used the code:
<?php
$createDay = date('d', strtotime( $this->item->created));
$createMonth = date('M', strtotime( $this->item->created));
$createYear = date('Y', strtotime( $this->item->created));
?>
</blockquote>you replace code :
<?php
$createDay = date('d', strtotime( $this->item->created));
$createMonth = JText::_( date('F', strtotime( $this->item->created)) );
$createYear = date('Y', strtotime( $this->item->created));
?>Then check this issue again
luciffere Friendluciffere
- Join date:
- January 2008
- Posts:
- 103
- Downloads:
- 3
- Uploads:
- 17
- Thanks:
- 5
- Thanked:
- 3 times in 1 posts
April 22, 2011 at 12:14 pm #387635I’m not talking about word length (APR. instead APRILIE). I talk about the day. DAY is wrong…
I resolved my problem wit this code:<?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">
<strong><?php echo substr($arrdate[1], 0, 3); ?></strong>
<strong><?php echo substr($arrdate[2], 0, 4); ?></strong>
</span>AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 4 replies, has 2 voices, and was last updated by luciffere 13 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum