-
AuthorPosts
-
metastorm Friend
metastorm
- Join date:
- October 2012
- Posts:
- 48
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 6
- Thanked:
- 5 times in 1 posts
November 21, 2012 at 9:56 am #182447Hello,
Currently in articles (com_content) no time marks are showed, only date.
In language .ini there are string DATE_FORMAT_LC2=”l, d F Y H:i” , but in article view:Last Updated on 18 February 2012
How to put the time on, like
Last Updated on 18 February 2012 15:30 ?Sample – any article at demo
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
November 21, 2012 at 3:49 pm #473796There is actually a free extension that configures this for you –> NEWS TIME UPDATE
metastorm Friendmetastorm
- Join date:
- October 2012
- Posts:
- 48
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 6
- Thanked:
- 5 times in 1 posts
November 21, 2012 at 8:37 pm #473850Hi TomC,
Thank you for help, but plugin is a little overkill solution. 🙂
I just want to use standard Joomla function and wondering why it’s not work as must?
I have in global options Modify Date = Show and DATE_FORMAT_LC2=”d F Y H:i” in .ini files. So, where can be a problem? What should I check?metastorm Friendmetastorm
- Join date:
- October 2012
- Posts:
- 48
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 6
- Thanked:
- 5 times in 1 posts
December 12, 2012 at 12:32 pm #475991🙂
For some reason the date format is brought from administratorlanguage ini file, not from common language ini file.
So, you can change DATE_FORMAT_LC3 variable in administratorlanguage or set a new one (DATE_FORMAT_MY) in administratorlanguage or common language ini file.DATE_FORMAT_LC3=”d F Y”
Change to
DATE_FORMAT_LC3=”d F Y H:i”Also, your code from templatesja_nexhtmlcom_contentarticledefault.php:
<?php if ($params->get('show_create_date')) : ?>
<dd class="create">
<?php echo JText::sprintf('JACOM_CONTENT_CREATED_DATE_ON', JHtml::_('date',$this->item->created, JText::_('DATE_FORMAT_LC3'))); ?>
</dd>
<?php endif; ?>JACOM must be just COM.
And in
<?php if ($params->get('show_publish_date')) : ?>
<dd class="published">
<?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date',$this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?>
</dd>correct code:
<?php if ($params->get('show_publish_date')) : ?>
<dd class="published">
<?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?>
</dd>
<?php endif; ?>Please fix. 🙂
-
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by metastorm 12 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum