Laravel changing timezone not reflecting the correct time

前端 未结 4 1071
一生所求
一生所求 2020-12-06 07:24

I am changing the timezone into Asia/Singapore at config/app.php, but when I try to do a date(\"Y-m-d H:i:s\"); the result is still in

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-06 08:10

    Add this in config/app.php file:

    'timezone' => 'Asia/Singapore'  
    

    After, run this command:

     php artisan config:cache
    

提交回复
热议问题