The interpretation of your input value is UTC.
psql=# select cast('1858-11-17 01:09:05 UTC' as timestamp with time zone); timestamptz ------------------------ 1858-11-17 01:09:05+00 (1 row) psql=# select cast('1858-11-17 01:09:05 BRT' as timestamp with time zone); timestamptz ------------------------ 1858-11-17 04:09:05+00 (1 row)
The two values ββare simply different representations of the same timestamp.
psql=# select cast('1858-11-17 05:11:29+04:02:24' as timestamp with time zone) = cast('1858-11-17 01:09:05+0000' as timestamp with time zone); ?column? ---------- t (1 row)
source share