Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • Aratype Friend
    #206171

    Although I did override for DATE_FORMAT_LC3 to d.m.Y I see that “Most Read”, “Latest News” and “Main Menu” continue to have the by default date format.

    My question is it possible to override these date format also or I have to do that differently?

    It is nice to know wehre to change this date format also:

    Thank you!

    =======

    website: tiqana.net

    jooservices Friend
    #569823

    Hi there
    # Which element you want to change ? Please provide some more detail.
    # Please also provide your site & CPanel access than i can help you inspect and update it.

    Thank you,
    Viet Vu

    jooservices Friend
    #734905

    Hi there
    # Which element you want to change ? Please provide some more detail.
    # Please also provide your site & CPanel access than i can help you inspect and update it.

    Thank you,
    Viet Vu

    jooservices Friend
    #570246

    Hi there
    I have updated it

    <?php
    /**
    * @package Joomla.Site
    * @subpackage Layout
    *
    * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */
    defined('JPATH_BASE') or die;
    $item = $displayData['item'];
    $params = $displayData['params'];
    $date_field = $params->get('show_date_field');
    $date = $item->$date_field;
    $dateObject = JFactory::getDate($date);
    $dateObject->format(JText::_('DATE_FORMAT_LC3'));
    ?>
    <dd class="published">
    <i class="icon-calendar"></i>
    <time datetime="<?php echo JHtml::_('date', $date, 'c'); ?>" itemprop="datePublished">
    <?php echo $dateObject; ?>
    </time>
    </dd>

    At moment i can’t access your site to check it. But in my local it’s working. Please help me check it at your side.

    Thank you,
    Viet Vu

    jooservices Friend
    #735312

    Hi there
    I have updated it

    <?php
    /**
    * @package Joomla.Site
    * @subpackage Layout
    *
    * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */
    defined('JPATH_BASE') or die;
    $item = $displayData['item'];
    $params = $displayData['params'];
    $date_field = $params->get('show_date_field');
    $date = $item->$date_field;
    $dateObject = JFactory::getDate($date);
    $dateObject->format(JText::_('DATE_FORMAT_LC3'));
    ?>
    <dd class="published">
    <i class="icon-calendar"></i>
    <time datetime="<?php echo JHtml::_('date', $date, 'c'); ?>" itemprop="datePublished">
    <?php echo $dateObject; ?>
    </time>
    </dd>

    At moment i can’t access your site to check it. But in my local it’s working. Please help me check it at your side.

    Thank you,
    Viet Vu

    Aratype Friend
    #570298

    Thank you! Quasi perfect…

    May I know in which file you changed it?

    What I did is:

    2014.11.15

    And what you did:

    2014-11-07

    jooservices Friend
    #570306

    Hi there
    Here you are

    $date = $item->$date_field;
    $dateObject = JFactory::getDate($date);
    $dateObject->format(JText::_('DATE_FORMAT_LC3'))

    It layout file
    Thank you,
    Viet Vu

    Aratype Friend
    #570340

    Thank you again, but in which file should I customize the code?

    jooservices Friend
    #570354

    Hi there
    Here you are

    templatesja_teline_vhtmllayoutsjoomlacontentinfo_blockdate.php

    Thank you,
    Viet Vu

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

This topic contains 9 replies, has 2 voices, and was last updated by  jooservices 9 years, 6 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum