E
E
Emil Rakhmatullin2019-08-18 10:10:31
Laravel
Emil Rakhmatullin, 2019-08-18 10:10:31

Laravel 5.7. The wrong time is written to the database (3 hours behind). What's the matter?

Why is the wrong time recorded in the database? For example, not 9:58, but 6:58
What is the easiest and fastest way to make sure that the time is correct in Moscow?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Razgelday, 2019-08-20
@Razgelday

For the correct time according to Moscow time, it is necessary to register the time zone in the config:

// config/app.php

// ...

'timezone' => 'Europe/Moscow',

// ...

Please note that after changing the time zone, a "blank" will appear in the database between the old and new records with a size of 3 hours.

A
Andrew, 2018-01-18
@AndrewHaze

Something like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question