Postgres AT TIME ZONE 'UTC' does NOT do what you think it does

17 days ago by ☆ Yσɠƚԋσʂ ☆ to c/programming

And why you may need to repeat AT TIME ZONE 'UTC' twice. SUMMARY * AT TIME ZONE 'UTC' converts the data type from timestamptz to timestamp (example). * Now you are inadvertently using the timestamp without time zone (aka timestamp) data type, which is markedly discouraged. * There are tons of footguns with timestamp. * For example, the equality of timestamp and timestamptz will always be false..... unless your Postgres' default timezone is UTC. Read more. * Adding a month wit
SnoopSqueak -1 points 17 days ago

You don't know what I think it does. Fuck clickbait.

path: 0 26075890, hotness: undefined, score: -1, children: 0
programming

@lemmy.ml

login for more options
10030
531
144

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

Systems

Functional Programming

Also related

go to feed...