'Timestamp off by 1 hour
I am using Laravel 9 app. In my config/app.php I am using
'timezone' => 'America/Toronto'
However, the timestamp I am getting in the SQL table is off by 1 hour, that is instead of 2022-04-15 19:06:53, my table contains 2022-04-15 20:06:53. Not sure, if this issue is linked to daylight saving that is applicable in Toronto these days (April). Also want to add that my shared hosting server is with Dreamhost, which is in LA, USA.
So, in addition to timezone setting in config/app.php, is there anything else I need to do to fix this issue.
Solution 1:[1]
Can you see the php.ini file? If you can change the php.ini file the problem will be solved.
It will be enough to update the date.timezone value in the php.ini file.
You need to restart the server after this change.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Koray Çiçekçio?ullar? |
