Browse Source

Make sure a good timezone is set, fixes #2899

Jordi Boggiano 11 years ago
parent
commit
1347d5306a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tests/bootstrap.php

+ 4 - 0
tests/bootstrap.php

@@ -12,5 +12,9 @@
 
 
 error_reporting(E_ALL);
 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__.'/../src/bootstrap.php';
 require __DIR__.'/Composer/TestCase.php';
 require __DIR__.'/Composer/TestCase.php';