From 027f4a3ceb6ed9730390369db673fa1d2afd4fa1 Mon Sep 17 00:00:00 2001 From: 7IN0SAN9 Date: Thu, 24 Mar 2016 16:06:36 +0800 Subject: [PATCH] =?UTF-8?q?Timezone=20=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/conf/timezone.ini | 1 + tests/mock.php | 1 - tests/script/install.sh | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 tests/conf/timezone.ini diff --git a/tests/conf/timezone.ini b/tests/conf/timezone.ini new file mode 100644 index 00000000..576c5728 --- /dev/null +++ b/tests/conf/timezone.ini @@ -0,0 +1 @@ +date.timezone = UTF \ No newline at end of file diff --git a/tests/mock.php b/tests/mock.php index d6e91781..536d559d 100644 --- a/tests/mock.php +++ b/tests/mock.php @@ -11,7 +11,6 @@ // 测试入口文件 $_SERVER['REQUEST_METHOD'] = 'GET'; -date_default_timezone_set('UTC'); // 定义项目测试基础路径 define('TEST_PATH', __DIR__ . '/'); // 定义项目路径 diff --git a/tests/script/install.sh b/tests/script/install.sh index b2ee5580..0adee7ed 100755 --- a/tests/script/install.sh +++ b/tests/script/install.sh @@ -11,6 +11,8 @@ if [ $(phpenv version-name) != "hhvm" ]; then phpenv config-add tests/conf/memcached.ini phpenv config-add tests/conf/redis.ini + + phpenv config-add tests/conf/timezone.ini fi composer install --no-interaction --ignore-platform-reqs