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!
And the data that is already in the tables will not be deleted?
Yuriy2021-02-23 04:20:32Hmm .. I have already created a table. How to be?
Yuriy2021-02-23 04:20:32Can 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
Related questions
- php : If the model was created successfully, create another Laravel model
- php - i can't connect to mysql in laravel js
- php - please tell me how to put together the route of laravel
- php - i want to read the exif information of an image with exif_read_data ()
- php - i can't upload a file with laravel's form tag (file attribute)
- php - i want to set the number of characters of email created by laravel faker to 25 characters or less
- php - [laravel] how to read and use the class of another file in controller
- php - about the value stored in laravel db
- php - e-mail transmission with laravel is garbled
- after upgrading the php version of the rental server from 58 to 74, composer stopped working on ssh connections
Updated. The creation time is still 2 hours less than necessary
Yuriy2021-02-23 04:20:32