From 6292c7dc68b2bb1d7cda332f1b201feb413ca802 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 4 Oct 2022 01:17:29 +0800 Subject: [PATCH] fixed --- init.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/init.php b/init.php index c4881dd..5f59c58 100644 --- a/init.php +++ b/init.php @@ -22,6 +22,9 @@ I::::::::I Y:::::::::::Y UU:::::::::UU UU:::::::::UU IIIIIIIIII YYYYYYYYYYYYY UUUUUUUUU UUUUUUUUU EOF; + +// 设置时区 +date_default_timezone_set('Asia/Shanghai'); echo microtime(true) . ' 当前时间:' . date('Y-m-d H:i:s') . PHP_EOL; echo microtime(true) . ' 当前操作系统:' . PHP_OS . PHP_EOL; echo microtime(true) . ' 当前运行环境:' . PHP_OS_FAMILY . PHP_EOL; @@ -53,8 +56,6 @@ if (PHP_SAPI != 'cli') { exit("You must run the CLI environment\n"); } -// 设置时区 -date_default_timezone_set('Asia/Shanghai'); echo microtime(true) . ' 环境变量初始化完成!' . PHP_EOL; //检查扩展与函数