From f450b8d863866291785a37b65fb02fcd57699f9c Mon Sep 17 00:00:00 2001 From: sunxyw Date: Mon, 28 Mar 2022 18:19:48 +0800 Subject: [PATCH] change phpunit default timezone to Asia/Shanghai --- bin/phpunit-swoole | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/phpunit-swoole b/bin/phpunit-swoole index acce0232..5c16093f 100755 --- a/bin/phpunit-swoole +++ b/bin/phpunit-swoole @@ -33,7 +33,7 @@ if (PHP_VERSION_ID <= 70100) { } if (!ini_get('date.timezone')) { - ini_set('date.timezone', 'UTC'); + ini_set('date.timezone', 'Asia/Shanghai'); } require $root . '/vendor/autoload.php'; @@ -45,4 +45,4 @@ go(static function () { Swoole\Process::wait(); }); -Swoole\Event::wait(); \ No newline at end of file +Swoole\Event::wait();