Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • boef0047 Friend
    #164842

    I’ve installed Teline IV in Joomla 1.5.23 with K2. So far so good. But at the top we see last modified date, but i cann´t find how it works, there is nothing. But with normal Joomla content the last modified datie is working, with K2 not. What can i do?

    If you want to see it, go to http://www.volnieuws.nl

    khoand Friend
    #394818

    Hi,
    templatesja_teline_ivblockstopbar.php use this code to show last update:

    <p class="ja-updatetime"><span><?php echo JText::_('Last update')?></span><em><?php echo T3Common::getLastUpdate(); ?></em></p>
    getLastUpdate() is defined in pluginssystemjat3corecommon.php


    function getLastUpdate(){
    $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 ';

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

    $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';
    }
    return ;
    }

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

This topic contains 2 replies, has 2 voices, and was last updated by  khoand 12 years, 11 months ago.

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