A
A
Alexander Ampleev2019-02-05 11:03:56
Laravel
Alexander Ampleev, 2019-02-05 11:03:56

How to adjust project time by +3 hours Laravel 5.3?

I use standard eloquent models, when saving created_at and updated_at in the database 3 hours less than Moscow time (both locally and in production). How to correct it? It seems that there must be something in the spirit of the time zone settings in .env, but the goo search did not solve this mystery ..

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin B., 2019-02-05
@Ampleev

Tyk

A
Alexander, 2019-02-05
@misantron

The database uses temporary server settings. If you want to change the timezone for the entire application, then you need to do it at the server level (locally and on the prod).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question