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应用程序中使用错误时区的含义。
答案 0 :(得分:0)
您应该设置有关应用程序用户的应用程序时区。 Laravel和时区之间没有任何关系。