فهرست منبع

Make sure a good timezone is set, fixes #2899

Jordi Boggiano 11 سال پیش
والد
کامیت
1347d5306a
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  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';