Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mwm's avatar
Level 13

How to change timezone in app.php

Hello,

I need to change the timezone in app/config/app.php FROM: 'timezone' => 'UTC', which is the default TO: GMT +3

Any idea what I should write there?

0 likes
8 replies
jlrdw's avatar

Whaaaaaat, users of framework might have to actually refer to PHP manual, NO WAY. It's not a simple point and click thing-a-ma-jig?

Wonder what --immck thinks.

2 likes
Raywachaga's avatar

Thanks for this thread Mustafa. Changing the timezone saves you a lot of unnecessary code to achieve a simple thing.

Lina's avatar

For me is not working right if I put Europe/Madrid, only works when I use date('Y-m-d H:i:s'); ...

AnujShr's avatar

I never knew we had to set up timezone in Laravel config. Thought it will take default time set in php. And I thought that my apache file was broken somewhere....

1 like

Please or to participate in this conversation.