mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
Add 'phabricator.timezone' config for HPHP installs.
This commit is contained in:
parent
1b2140d7a4
commit
3af9919e1c
2 changed files with 12 additions and 0 deletions
|
@ -250,6 +250,13 @@ return array(
|
|||
// alone.
|
||||
'phabricator.version' => 'UNSTABLE',
|
||||
|
||||
// PHP requires that you set a timezone in your php.ini before using date
|
||||
// functions, or it will emit a warning. If this isn't possible (for instance,
|
||||
// because you are using HPHP) you can set some valid constant for
|
||||
// date_default_timezone_set() here and Phabricator will set it on your
|
||||
// behalf, silencing the warning.
|
||||
'phabricator.timezone' => null,
|
||||
|
||||
|
||||
// -- Files ----------------------------------------------------------------- //
|
||||
|
||||
|
|
|
@ -60,6 +60,11 @@ phutil_require_module('phabricator', 'aphront/console/plugin/errorlog/api');
|
|||
set_error_handler(array('DarkConsoleErrorLogPluginAPI', 'handleError'));
|
||||
set_exception_handler(array('DarkConsoleErrorLogPluginAPI', 'handleException'));
|
||||
|
||||
$tz = PhabricatorEnv::getEnvConfig('phabricator.timezone');
|
||||
if ($tz) {
|
||||
date_default_timezone_set($tz);
|
||||
}
|
||||
|
||||
foreach (PhabricatorEnv::getEnvConfig('load-libraries') as $library) {
|
||||
phutil_load_library($library);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue