Answer the question
In order to leave comments, you need to log in
How to make model field created_at converted to time zone?
in Laravel settings timezone is set to Moscow/Europe.
When data is added to the table, it is automatically saved in the Moscow time zone ( created_at, updated_at )
But when data is retrieved from the model and returned to the front, these two fields come out already converted to UTC, that is, 3 hours less.
What method to choose in order to deliver dates in Moscow time to the front with the least losses? Particularly interested. if we return whole bundles of goods.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question