use timestampzit will save your timestamp in UTC. and displays it to the client according to its locale.
https://www.postgresql.org/docs/current/static/datatype-datetime.html
For a timestamp with a time zone, the internally stored value is always in UTC (Universal Coordinated Time, traditionally known as Greenwich Mean Time) Time, GMT). An input value that has an explicit time zone is specified converted to UTC using the appropriate offset for this time zone. If the time zone is not indicated in the input line, then it is assumed that the time zone specified by the TimeZone parameter of the system is converted to UTC using the offset for the time zone zone.
, UTC . , AT TIME ZONE (. 9.9.3).
Lukasz, :
, , , .
, "2017-12-31" "23: 01: 01" , ,
. Laurenz
, , UTC . , . :
t=
CREATE TABLE
t=
SET
t=
INSERT 0 1
t=
INSERT 0 1
t=
INSERT 0 1
t=
t
------------------------
2017-01-01 00:00:00-05
2017-01-01 05:00:00-05
2016-12-31 17:00:00-05
(3 rows)