From 693977fb3b49dc5789a3c142fcc39888a4bd8a5d Mon Sep 17 00:00:00 2001 From: jungejason Date: Fri, 27 May 2011 16:39:39 -0700 Subject: [PATCH] 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 --- scripts/__init_env__.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/__init_env__.php b/scripts/__init_env__.php index 1089069377..f3d97847dc 100644 --- a/scripts/__init_env__.php +++ b/scripts/__init_env__.php @@ -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); +}