Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • Danar Friend
    #836893

    Dear admin,
    On the "What’s new" module show the date, but inaccurate.
    Now is January 2, but the date still show January 1.
    There are late in about 12 hour.
    How to adjust it to local time?


    1. the-date
    2. jakartatime
    Ninja Lead Moderator
    #837954

    Hi,

    Thanks for your feedback.

    This is a bug from our product, you can fix this bug with my hotfix below

    Open templates/ja_teline_v/tpls/blocks/header.php file

    find and change

    <span class="number date"><?php echo date('d') ?></span>
    <div class="text">
        <span class="day"><?php echo JText::_(date('D')) ?></span>, <span class="month"><?php echo JText::_(date('F').'_SHORT') ?></span>
    </div>

    to

    <?php 
        $date = new DateTime();
        $config = JFactory::getConfig();
        $date->setTimezone(new DateTimeZone($config->get('offset')));
    ?>
    <span class="number date"><?php echo $date->format('d') ?></span>
    <div class="text">
        <span class="day"><?php echo JText::_($date->format('D')) ?></span>, <span class="month"><?php echo JText::_($date->format('F').'_SHORT') ?></span>
    </div>

    Let me know if it helps

    Regards

    Danar Friend
    #838167

    I have replace it’s code, here is the screenshot, I think it’s problem with the style


    1. date
    Ninja Lead Moderator
    #838274

    You can give me the credentials info: the URL of your site and admin login via Set as private reply. I will help you to check and fix this bug directly on your site.

    Danar Friend
    #838333
    This reply has been marked as private.
    Ninja Lead Moderator
    #838620

    I fixed the problem directly on your site and updated the solution into here

    Danar Friend
    #839485

    It’s work.
    Problem solved.
    Thanks very much.

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

This topic contains 6 replies, has 2 voices, and was last updated by  Danar 8 years, 4 months ago.

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