@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Set timezone before calling date

Summary:
PhabricatorAccessLog called date() before we set the timezone; this
reorders the commands.

Test Plan: loaded my sandbox; checked log to see that hphp didn't complain

Reviewers: epriestley, jungejason

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D2911

+7 -5
+7 -5
webroot/index.php
··· 78 78 79 79 PhabricatorEnv::setEnvConfig($conf); 80 80 81 + // This needs to be done before we create the log, because 82 + // PhabricatorAccessLog::getLog() calls date() 83 + $tz = PhabricatorEnv::getEnvConfig('phabricator.timezone'); 84 + if ($tz) { 85 + date_default_timezone_set($tz); 86 + } 87 + 81 88 // This is the earliest we can get away with this, we need env config first. 82 89 PhabricatorAccessLog::init(); 83 90 $access_log = PhabricatorAccessLog::getLog(); ··· 96 103 97 104 } catch (Exception $ex) { 98 105 phabricator_fatal("[Initialization Exception] ".$ex->getMessage()); 99 - } 100 - 101 - $tz = PhabricatorEnv::getEnvConfig('phabricator.timezone'); 102 - if ($tz) { 103 - date_default_timezone_set($tz); 104 106 } 105 107 106 108 PhutilErrorHandler::setErrorListener(