Specify a time zone to use as the reference time zone

后端 未结 4 1739
鱼传尺愫
鱼传尺愫 2021-01-07 09:06

Based on the first two answers, the question was unclear as originally posted, thus I am completely rewriting it:

The following question is concerned only w

4条回答
  •  一向
    一向 (楼主)
    2021-01-07 09:26

    When inserting a value into a timestamp with time zone field what actually happens is the timestamp is converted to UTC. Another matter altogether is to what time zone that value is converted on output. There are a few ways to control that:

    When a timestamp with time zone value is output, it is always converted from UTC to the current timezone zone, and displayed as local time in that zone. To see the time in another time zone, either change timezone or use the AT TIME ZONE construct (see Section 9.9.3).

提交回复
热议问题