test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • isaandan Friend
    #130444

    Hi,

    The date at top right of the temeplate seems to still show the servers actual date and not the time zone I have set in Joomla config. How can I fix this ?

    Thanks

    Sherlock Friend
    #258045

    Hi isaandan !
    With joomla 1.5 you can get joomla config time by code line below :


    JHTML::_('date', null, '%Y-%m-%d %H:%M:%S');

    isaandan Friend
    #258048

    Hi I’m using Joomla 1.0.15, will the code still work. Where will the code need to be added ?

    thx

    Sherlock Friend
    #258054

    Hi issandan !
    You open index.php file in templates/ja_teline_ii folder , find following code section :


    <div class="ja-day">
    <?php
    echo "<span>".date ('l')."</span>";
    echo " <div>".date ('M')." ".date ('d').date ('S')."</div>";
    ?>

    then replace:
    date (‘l’) to JHTML::_(‘date’, null, ‘%l’);
    date (‘M’) to JHTML::_(‘date’, null, ‘%M’);
    date (‘d’) to JHTML::_(‘date’, null, ‘%d’);
    date (‘S’) to JHTML::_(‘date’, null, ‘%S’);

    isaandan Friend
    #258058

    Hi,

    I get the following error

    Fatal error: Class ‘JHTML’ not found in /home/content/t/o/t/mysite/html/templates/ja_teline_ii/index.php on line 119

    I had some syntax errors first, which I also tried to fix.

    Could you just post the code as is should be in it’s “fixed” form

    Cheers

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

This topic contains 5 replies, has 2 voices, and was last updated by  isaandan 16 years, 5 months ago.

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