test
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • webjwn Friend
    #164532

    In solving another issue, I had help from the support rep in updating the T3 architecture, but now I have this error at the top of the site;

    T3_DATE_FORMAT_LASTUPDATE

    How can I fix this to show the date again?

    Cheers


    1. Picture-1
    khoand Friend
    #393296

    Hi,
    You try replace this code from templatesja_teline_ivblockstopbar.php file

    echo T3Common::getLastUpdate();
    with

    echo JHTML::date('now', 'h:i:s A', true).' GMT';

    mayuri_g Friend
    #393817

    Replace the below code from pluginssystemjat3corecommon.php file

    $date =& JFactory::getDate(strtotime($data->created));
    $user =& JFactory::getUser();
    $tz = $config->get(‘offset’);

    $sec =$date->toUNIX(); //set the date time to second
    return gmdate(“h:i:s A”, $sec).’ GMT’;

    with the code

    return JHTML::date($data->created, “%H:%M:%S”);

    if if it working fine, let us know.

    webjwn Friend
    #393938

    Hello

    I have replaced the code suggested however it just removes the ‘last update’ bar. I reverted back to the original code, but the bar still remains hidden. Not sure what happened.

    khoand Friend
    #393954

    <em>@webjwn 243940 wrote:</em><blockquote>Hello

    I have replaced the code suggested however it just removes the ‘last update’ bar. I reverted back to the original code, but the bar still remains hidden. Not sure what happened.</blockquote>

    Could you give me username+password of ftp and a link to your website?

    mayuri_g Friend
    #394016

    try this code in pluginssystemjat3corecommon.php file

    $db = &JFactory::getDBO();

    $query = ‘SELECT created FROM #__content a ORDER BY created DESC LIMIT 1’;

    $db->setQuery($query);

    $data = $db->loadObject();

    if( $data->created ){ //return gmdate( ‘h:i:s A’, strtotime($data->created) ) .’ GMT ‘;

    $date =& JFactory::getDate(strtotime($data->created));

    $user =& JFactory::getUser();

    $tz = $user->getParam(‘timezone’);

    $sec =$date->toUNIX(); //set the date time to second

    return gmdate(“h:i:s A”, $sec+$tz).’ GMT’;

    }

    khoand Friend
    #394548

    Sorry about late response. I received your information of ftp. But I can’t access your site by ftp. Could you check and send it again, please? Thanks

    khoand Friend
    #395243

    Hi,
    I can’t still access your website by ftp. So I use another way to support to you. I need to view content of pluginssystemjat3corecommon.php and templatesja_teline_ivblockstopbar.php. So could you give me them?

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

This topic contains 8 replies, has 3 voices, and was last updated by  khoand 13 years, 6 months ago.

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