I'm using Postgres 13 with Laravel 8.4.4
Setting the Unix timestamp 1607207809 for an Eloquent model property which is defined as cast to datetime, we get the correct Carbon time, 2020-12-05 22:36:49.0 +00:00.
However, saving this model instance, where that column is defined in the migration as a timestampTz column, results in 2020-12-05 22:36:49-08 being saved. This is not the correct timezone, resulting in an incorrect time.
In config/app.php, the timezone is set to UTC. My computer's timezone is Pacific Time, so it would appear that is taking precedence somehow. Any ideas why?
I would have expected the timestamp to be saved using the timezone encoded in Carbon, but apparently not?