Browse Source

Make sure a good timezone is set, fixes #2899

Jordi Boggiano 11 năm trước cách đây
mục cha
commit
1347d5306a
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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';