-
AuthorPosts
-
October 11, 2011 at 8:08 am #169552
Hi,
my blog category has a wrong article date as shown in the picture.
I just added a new article but the year is “1970”!?!?
Any help will be appreciated.
Thanks
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
October 11, 2011 at 8:34 am #418410Salve
Va modificato il formato data nel file php del theme
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
October 11, 2011 at 8:51 am #418419Salve
nel file /templates/ja_social/html/com_content/category/blog_item.php presso la riga 50
if (!$created) $created = JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC3')) ?>
va cambiato inif (!$created) $created = JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2')) ?>
1 user says Thank You to pavit for this useful post
October 13, 2011 at 2:07 pm #419083Grazie
ma ho dovuto anche cambiare la riga 54
da
$createYear = date('Y', strtotime($created));
a
$createYear = date('Y', strtotime($this->item->created));
Questa modifica si perdera’ qualora aggiornassi il template ad una versione piu recente ?
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
AuthorPostsViewing 5 posts - 1 through 5 (of 5 total)This topic contains 5 replies, has 2 voices, and was last updated by pavit 13 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Blog category date is wrong
Viewing 5 posts - 1 through 5 (of 5 total)