mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-14 02:42:40 +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.
|
// alone.
|
||||||
'phabricator.version' => 'UNSTABLE',
|
'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 ----------------------------------------------------------------- //
|
// -- Files ----------------------------------------------------------------- //
|
||||||
|
|
||||||
|
|
|
@ -60,6 +60,11 @@ phutil_require_module('phabricator', 'aphront/console/plugin/errorlog/api');
|
||||||
set_error_handler(array('DarkConsoleErrorLogPluginAPI', 'handleError'));
|
set_error_handler(array('DarkConsoleErrorLogPluginAPI', 'handleError'));
|
||||||
set_exception_handler(array('DarkConsoleErrorLogPluginAPI', 'handleException'));
|
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) {
|
foreach (PhabricatorEnv::getEnvConfig('load-libraries') as $library) {
|
||||||
phutil_load_library($library);
|
phutil_load_library($library);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue