Laravel changing timezone not reflecting the correct time

前端 未结 4 1069
一生所求
一生所求 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 07:59

    Just do this:

    'timezone' => 'Asia/Singapore'

    in config/app.php file and run this 3 command:

    php artisan cache:clear

    php artisan view:clear and

    php artisan config:cache

    Hope this helps you!!

提交回复
热议问题