1
0
Fork 0
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:
jungejason 2011-05-27 16:39:39 -07:00
parent 8ae765f6d7
commit 693977fb3b

View file

@ -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);
}