我有一个问题
在Laravel config / app timezone = UTC
中
但我的localhost在日本,`created_at time is London
答案 0 :(得分:2)
I not sure that I have understood your question but... you are saying your locale config is UTC therefore you application runs with the correct configured timezone.
If you want to set a different timezone you should change it in config/app.php.
Check all available timezones in php: http://php.net/manual/es/timezones.php
Kind regards
答案 1 :(得分:0)
您可以像这样在laravel config / app中设置时区
'timezone' => 'Asia/Tokyo'
这应该可以解决您的问题。关于http://php.net/manual/en/timezones.php
致谢。