From 6ece0651df79bffb0e3a78132a20dd8358d7575f Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Sat, 29 Oct 2022 12:36:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 4 ---- bootstrap/app.php | 2 +- config/database.php | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.env.example b/.env.example index 0e5bad7..862a20f 100644 --- a/.env.example +++ b/.env.example @@ -4,11 +4,7 @@ APP_KEY= APP_DEBUG=true APP_URL=http://localhost -APP_TIMEZONE=PRC -DB_TIMEZONE=+08:00 - LOG_CHANNEL=stack -LOG_SLACK_WEBHOOK_URL= REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null diff --git a/bootstrap/app.php b/bootstrap/app.php index 5897ae4..af81b10 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -6,7 +6,7 @@ dirname(__DIR__) ))->bootstrap(); -date_default_timezone_set(env('APP_TIMEZONE', 'UTC')); +date_default_timezone_set(env('APP_TIMEZONE', 'PRC')); /* |-------------------------------------------------------------------------- diff --git a/config/database.php b/config/database.php index f261a58..d3f965e 100644 --- a/config/database.php +++ b/config/database.php @@ -47,7 +47,7 @@ 'prefix' => env('DB_PREFIX', ''), 'strict' => env('DB_STRICT_MODE', true), 'engine' => env('DB_ENGINE'), - 'timezone' => env('DB_TIMEZONE', '+00:00'), + 'timezone' => env('DB_TIMEZONE', '+08:00'), 'options' => [ PDO::ATTR_PERSISTENT => true, ],