Convert a UTC timezone in postgresql to EST (local time)

后端 未结 6 1029
野趣味
野趣味 2020-12-24 11:00

I am new to PostgreSQL and I was wondering if there is a direct way to just convert the timestamp values in a table to a different timezone using a function. In my case it i

6条回答
  •  感情败类
    2020-12-24 11:37

    I usually leave everything in UTC and convert when it is time to show. I use something like:

    SELECT my_date_utc AT time zone 'utc' at time zone 'est' From ....
    

提交回复
热议问题