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

mdm100's avatar

Date & Time From Where?

I installed a Larvel App from Git. All seems ok except the SMS reminders are not sent as schedule. However, I just noticed the Date and Time on my Laravel App and the server it is running on are different. They are both set for UTC time, however, they are hours apart.

Where does Laravel get its Date & Time from? Is it from its own server? If not can it be set to get it form the server it is running on?

0 likes
2 replies
jlrdw's avatar

You can set it in the .env file, or app.php file in config folder if not using .env.

Snapey's avatar

it gets the time from the server, and uses the timezone setting in app.php to determine if there should be an offset

Please or to participate in this conversation.