Sfoglia il codice sorgente

Make sure a good timezone is set, fixes #2899

Jordi Boggiano 11 anni fa
parent
commit
1347d5306a
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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';