Home>

When adding any data to the database, the fields of the 'created_at' type display a time that does not correspond to the time zone. Please tell me how /where to set the time zone? Thanks a lot in advance!

Updated. The creation time is still 2 hours less than necessary

Yuriy2021-02-23 04:20:32

And the data that is already in the tables will not be deleted?

Yuriy2021-02-23 04:20:32

Hmm .. I have already created a table. How to be?

Yuriy2021-02-23 04:20:32

Can you give more details? Not much is not clear in which facade to edit

Yuriy2021-02-23 04:20:32

$ table->timestampsTz (); -TIMESTAMP (with timezone) equivalent column.

entithat2021-02-23 04:20:32
  • Answer # 1

    The time zone is configured in the config /app.php configuration file in the timezone field. The list of supported time zones is - http://php.net/manual/ru/timezones.php

    They said in the comments that this method did not help ..

    entithat2021-02-23 04:20:32