mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
Set time zone for PhabricatorRepositoryCommitDiscoveryDaemon
Summary: the daemon is generating a lot of warning about timezone not being set. Add it. Test Plan: php -l. Launched the daemon and it didn't crash. It's difficult to make it parse a commit on my sandbox though. I will see if it fixes the problem once it is live. Reviewed By: epriestley Reviewers: epriestley, tuomaspelkonen CC: aran, epriestley, jungejason Differential Revision: 356
This commit is contained in:
parent
8ae765f6d7
commit
693977fb3b
1 changed files with 5 additions and 0 deletions
|
@ -42,3 +42,8 @@ foreach (PhabricatorEnv::getEnvConfig('load-libraries') as $library) {
|
|||
}
|
||||
|
||||
PhutilErrorHandler::initialize();
|
||||
|
||||
$tz = PhabricatorEnv::getEnvConfig('phabricator.timezone');
|
||||
if ($tz) {
|
||||
date_default_timezone_set($tz);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue