Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

470
Visualizações
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?

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

You can set your Application Time Zone by configuring app.php file in config folder. To change time zone

'timezone' => 'Europe/Vilnius'

And clear the config cache execute this command : php artisan optimize:clear

You do not have the privileges to execute that command, you can delete the cached config file.

It is located at bootstrap/cache/config.php.

over 4 years ago · Santiago Trujillo Relatório

0

In order to reflect your timezone related changes of your config file then kindly ensure that you have cleared your cache. You can use the following command set for your reference:

php artisan cache:clear
php artisan config:cache
php artisan config:cache
over 4 years ago · Santiago Trujillo Relatório

0

Try to clear the config cache:

php artisan optimize:clear
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda