test
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • shafaaq Friend
    #203038

    hi’

    the “Last Update” time displayed at the top of the site is stucked at 12:00:00 AM for the last two days, although the update in my site is continuous all the day , cause it’s a NEWS site.
    so i cleared all kinds of cash ( browsers, T3, back end administration ) but the time still stucked at 12 AM as in the attached image !!

    any idea please?

    thanks


    1. last-update-problem
    jooservices Friend
    #556456

    Hi there,
    Please provide your site URL for checking

    Thank you,
    Viet Vu

    shafaaq Friend
    #556475

    shafaaq.com/sh2

    thanks

    shafaaq Friend
    #556635

    hi Viet Vu,

    i had to remove the hole phrase to avoid the stucked time bad look !
    can you deal with the problem without being displayed ?

    thanks for help

    Ali

    jooservices Friend
    #556752

    Hi there
    I’m not sure what’s exactly JA Teline IV and T3 version you are using. But check with our latest


    public static function getLastUpdate($fieldname = null)
    {
    if (! $fieldname) $fieldname = 'created';
    $db = JFactory::getDBO();
    $query = "SELECT `$fieldname` FROM #__content a ORDER BY `$fieldname` DESC LIMIT 1";
    $db->setQuery($query);
    $data = $db->loadObject();
    if ($data != null && $data->$fieldname) {
    $date = JFactory::getDate($data->$fieldname);
    //get timezone configured in Global setting
    $app = JFactory::getApplication();
    // Get timezone offset
    $tz = $app->getCfg('offset');
    // Set timezone offset for date
    $date->setTimezone(new DateTimeZone($tz));
    //return by the format defined in language
    return $date->format(JText::_('T3_DATE_FORMAT_LASTUPDATE'), true);
    }
    return;
    }

    Look like it’s right code. But please check your timezone config ?

    Thank you,
    Viet Vu

    shafaaq Friend
    #556982

    Hi,

    JA Teline IV vesion is: 1.2.4

    T3 version is: 1.1.5

    Time Zone : UTC + 3:00 Baghdad, Moscow, Riyadh

    thanks

    jooservices Friend
    #556983

    Hi there,
    I need access into your site for code inspecting . Please provide both of backend & FTP access.

    Thank you,
    Viet Vu

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

This topic contains 7 replies, has 2 voices, and was last updated by  jooservices 10 years ago.

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