Explorar o código

Make sure a good timezone is set, fixes #2899

Jordi Boggiano %!s(int64=11) %!d(string=hai) anos
pai
achega
1347d5306a
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      tests/bootstrap.php

+ 4 - 0
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';