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 UTC.
Is there anything in Laravel that overrides that timezone that I set at config/app.php
?
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!!
Add this in config/app.php
file:
'timezone' => 'Asia/Singapore'
After, run this command:
php artisan config:cache
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With