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, ],