T
T
tvsjke2018-10-04 12:00:17
Laravel
tvsjke, 2018-10-04 12:00:17

How to solve created_at problem in Laravel?

Actually, the problem is:
Timestamps in the database are saved in UTC (+00:00)
But when the model is received, they are returned from -03:00

APP_TIMEZONE=UTC
DB_TIMEZONE=+00:00

date_default_timezone_get => UTC
Where to look?
Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question