From 51a85ae30e44d089115f03d3d1ee814eae36bf7c Mon Sep 17 00:00:00 2001 From: qkqpttgf <45693631+qkqpttgf@users.noreply.github.com> Date: Thu, 27 Jan 2022 11:51:04 +0800 Subject: [PATCH] set default timezone --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index c9244e2..47131c2 100644 --- a/index.php +++ b/index.php @@ -5,6 +5,7 @@ include 'vendor/autoload.php'; include 'conststr.php'; include 'common.php'; +date_default_timezone_set('UTC'); //echo '
'. json_encode($_SERVER, JSON_PRETTY_PRINT).'
'; //echo '
'. json_encode($_ENV, JSON_PRETTY_PRINT).'
'; if (isset($_SERVER['USER'])&&$_SERVER['USER']==='qcloud') {