Laravel时区UTC但获得了伦敦

时间:2016-04-07 02:48:04

标签: laravel timezone

我有一个问题

在Laravel config / app timezone = UTC中 但我的localhost在日本,`created_at time is London

2 个答案:

答案 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

致谢。