Menu

Time zone

Help
Saldanha
2013-12-05
2013-12-07
  • Saldanha

    Saldanha - 2013-12-05

    Hi!

    All time information about resources (like add and comments) are shown in UTC time, despite the configuration on config.php

    public $WIKINDX_TIMEZONE = 'America/Sao_Paulo';

    Is this the normal behavior?

     
  • Mark Grimshaw

    Mark Grimshaw - 2013-12-06

    Hi,

    Does that occur when displaying a resource that has been input after changing the timezone?

    Regards,

    Mark

     
  • Mark Grimshaw

    Mark Grimshaw - 2013-12-07

    This has been fixed in the latest SVN for English localization. The fix for other localizations is in CONSTANTS.php in the dateFormat() function:

        else if($dateFormat == 2)
        {
            $config = FACTORY_CONFIG::getInstance();
            if(!isset($config->WIKINDX_TIMEZONE) || !$config->WIKINDX_TIMEZONE)
                date_default_timezone_set(date_default_timezone_get()); // default is UTC
            else
                date_default_timezone_set($config->WIKINDX_TIMEZONE);
            $format = "d M Y H:i:s e";
            $timestamp = date($format, $unixTime);
        }
    

    Mark

     

Log in to post a comment.