‹ BackHN Continuity

Thread

Footguns with Postgres “at time zone 'UTC'”

169 points · 114 comments · birdculture

  1. Felk · · focus · HN ↗
    I think most of the confusuion comes from "AT TIME ZONE" being the syntax for both the conversion from _and_ to timezone'd timestamps. Maybe it would have been more intuitive had the two operations gotten different wordings, e.g.:

    timestamp to timestamptz: AS ZONED AT TIME ZONE ...

    timestamptz to timestamp: AS LOCAL AT TIME ZONE ...

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.