Take the following example:
create temporary table t1 (c1 timestamp with time zone);
insert into t1 values ('2003-04-12 04:05:06 America/New_York'::timestamp with time zone);
If I'm reading the documentation correctly, here Postgresql will use the full timezone name to convert the timestamp to UTC by adding +05:00 hours, then store that.
But if that's true then I can't distinguish between 2003-04-12 04:05:06 America/New_York
and 2003-04-12 04:05:06 America/Panama
, which has the same UTC offset but a different daylight savings offset.
Is that right?
Copyright Notice:Content Author:「jl6」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/21367180/can-you-recover-the-full-timezone-name-from-a-postgresql-timestamp-with-time-zon