test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • metastorm Friend
    #182447

    Hello,

    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 Moderator
    #473796

    There is actually a free extension that configures this for you –> NEWS TIME UPDATE

    metastorm Friend
    #473850

    Hi 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 Friend
    #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. 🙂

Viewing 4 posts - 1 through 4 (of 4 total)

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