test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • cripcrip Friend
    #160681

    Hi,
    my timezone is UTC +01:00 and when i create a new article is ok but in “last update” is -2 hours.
    i’m lookind a solution about 2 days ..
    please someone can help me?

    andrea
    :-[

    Nick R JA JobBoard
    #378443

    Hi Andrea,

    Did you already set your timezone in your global configuration of jooma?

    Cheers
    Nick

    cripcrip Friend
    #378464

    Hi Nick,
    in my global configuraion of joomla is OK, the time and date when i pubblish and article is OK just in homepage top sx Last Update the time is -2 hours just hours becouse minutes is OK

    Thank’s

    cripcrip Friend
    #378527

    my friend has correct this problem in this way

    Ora Gmt:
    /plugins/system/jat3/core/common.php

    $date =& JFactory::getDate(strtotime($data->created));
    $user =& JFactory::getUser();
    if($user->guest){ // utente ospite, timezone Italia
    $tz = 1; // rome, paris
    } else {
    $tz = $user->getParam(‘timezone’);
    }
    $date->setOffset($tz);
    $sec = $date->toUNIX(); //set the date time to second

    // daylight (ora solare/legale) correction
    return date(“h:i:s A”, $sec + (1 + date(“I”, $sec))*3600).’ GMT + ‘.($tz
    + date(“I”, $sec));

    i hope that is good solution.
    a.

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

This topic contains 4 replies, has 2 voices, and was last updated by  cripcrip 13 years, 9 months ago.

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