我应该在Laravel应用程序中使用什么时区以及为什么


What TimeZone should i use in Laravel App and why?

Laravel提供了以下开箱即用的时区。

/*
    |--------------------------------------------------------------------------
    | 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',

我对在我的 laravel 应用程序中使用正确的时区感到困惑。我的应用程序涉及全球用户。

所以我不知道我应该使用 Laravel 提供的默认时区还是使用我认为是 UTC+01:00 的国家时区,以及在 Web 应用程序中使用错误时区的含义是什么。

您应该根据应用程序的用户设置应用时区。拉拉维尔和时区之间没有关系。