I'm trying to update the timezone in a certain field of one of my tables. I have tried in several ways seen in some SO posts, but nothing seems to change the actual timezone value.
Anyone can explain why ...
select
now(),
extract(timezone from now()) * interval '1sec',
(now()::timestamp || 'PST8PDT')::timestamptz,
extract(timezone from (now()::timestamp || 'PST8PDT')::timestamptz) * interval '1sec'
All of these fields have the same timezone? The results to me in Fortaleza/Brazil are:
2018-10-29 14:52:04.55495-03 | -03:00:00 | 2018-10-29 18:52:04.55495-03 | -03:00:00"
Why? Shouldn't the last 2 values have PST timezone?
How can I actually change the timezone for a timestamp with time zone
field?