PHP - Laravel - 日本語化 - 時刻

 クラウディア
1. 概要
2. 設定

1. 概要

 日本語化というか、時刻の設定でありまして。  デフォルトでは、日時が「UTC」に設定されております。

2. 設定

 日時を「JST」へ変更するには

プロジェクトパス/config/app.php
 を編集します。  (下記の行番号は「Laravel Framework 8.50.0」のものです)

    /*
    |--------------------------------------------------------------------------
    | Application Timezone
    |--------------------------------------------------------------------------
    |
    | Here you may specify the default timezone for your application, which
    | will be used by the PHP date and date-time functions. We have gone
    | ahead and set this to a sensible default for you out of the box.
    |
    */

    'timezone' => 'UTC',
 を下記へ変更します。

    'timezone' => 'JST',