From 1347d5306a04c4dd6f957fa5cd326b07097c5ed3 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 14 Apr 2014 13:55:17 +0200 Subject: [PATCH] Make sure a good timezone is set, fixes #2899 --- tests/bootstrap.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 9e59c65a7..908861cf5 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -12,5 +12,9 @@ error_reporting(E_ALL); +if (function_exists('date_default_timezone_set') && function_exists('date_default_timezone_get')) { + date_default_timezone_set(@date_default_timezone_get()); +} + require __DIR__.'/../src/bootstrap.php'; require __DIR__.'/Composer/TestCase.php';