Search code examples
phplaravelapachedateutc

Laravel change timezone


After changing app/config/app.php FROM: 'timezone' => 'UTC', which is the default TO: 'timezone' => 'Europe/Vilnius', and still getting wrong date output. Also I changed php.ini file

[Date]
date.timezone=Europe/Vilnius

and restarted apache server, still getting wrong date output.

Any idea how to solve this?


Solution

  • Try to clear the config cache:

    php artisan optimize:clear