From 6d2c7de17e8a14283e4ec3d96cd5da152f0ba87e Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Thu, 18 Aug 2022 17:01:55 +0800 Subject: [PATCH] use PRC as default timezone https://guangdagit.com/beike/beikeshop/issues/99 --- .env.example | 3 ++- config/app.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 731bbe0a..3f90b95a 100644 --- a/.env.example +++ b/.env.example @@ -3,6 +3,7 @@ APP_ENV=local APP_KEY= APP_DEBUG=true APP_URL=http://localhost +APP_TIMEZONE=RPC LOG_CHANNEL=stack LOG_DEPRECATIONS_CHANNEL=null @@ -54,4 +55,4 @@ MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" # 前端热更新, PROXY: vhost or path, HOST: 多设备实时 MIX_PROXY=beikeshop.test -MIX_HOST=192.168.0.122 \ No newline at end of file +MIX_HOST=192.168.0.122 diff --git a/config/app.php b/config/app.php index 517967c8..c7c8618b 100644 --- a/config/app.php +++ b/config/app.php @@ -39,7 +39,7 @@ return [ | */ - 'debug' => (bool) env('APP_DEBUG', false), + 'debug' => (bool)env('APP_DEBUG', false), /* |-------------------------------------------------------------------------- @@ -67,7 +67,7 @@ return [ | */ - 'timezone' => 'UTC', + 'timezone' => env('APP_TIMEZONE', 'UTC'), /* |--------------------------------------------------------------------------