Hi,
I want to store timestamps with timezone offset info, like this:
CREATE TABLE TimeZoneTest (tstz TIMESTAMPTZ);
Set timezone to 'Europe/Berlin';
INSERT INTO TimeZoneTest VALUES ('2022-06-06 10:03:44-02:00');
INSERT INTO TimeZoneTest VALUES ('2022-06-06 10:03:44+01:00');
Now, I can select the time at each timezone, e.g. like
SELECT tstz AS 'Europe/Berlin', tstz AT TIMEZONE 'UTC' AS 'UTC' from TimeZoneTest;
However, how do I select the local time, i.e. 10:03:44, irrespective of the time zone, such that I get
2022-06-06 10:03:44 2022-06-06 10:03:44
as a result? Or can I get the offset only?