‹ BackHN Continuity

Thread

Footguns with Postgres “at time zone 'UTC'”

169 points · 114 comments · birdculture

  1. asah · · focus · HN ↗
    In nearly all cases, I recommend people use TIMESTAMPTZ with UTC timezone (i.e. convert on the way in). If possible, operate your apps with UTC until it hits a user's eyes, i.e. internally define your "day" to start in ~Greenwich UK.

    This saves a __lot__ of headaches, of which timestamp vs timestamptz is the tip of the iceberg.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.