Europe Pub
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆@lemmy.ml to General Programming Discussion@lemmy.mlEnglish · 3 days ago

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

bookofrevenue.com

external-link
message-square
1
link
fedilink
  • cross-posted to:
  • programming@programming.dev
  • hackernews@lemmy.bestiver.se
6
external-link

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

bookofrevenue.com

☆ Yσɠƚԋσʂ ☆@lemmy.ml to General Programming Discussion@lemmy.mlEnglish · 3 days ago
message-square
1
link
fedilink
  • cross-posted to:
  • programming@programming.dev
  • hackernews@lemmy.bestiver.se
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
alert-triangle
You must log in or # to comment.
  • SnoopSqueak@lemmy.today
    link
    fedilink
    arrow-up
    2
    arrow-down
    3
    ·
    3 days ago

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

General Programming Discussion@lemmy.ml

programming@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programming@lemmy.ml

A general programming discussion community.

Rules:

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

Other communities

  • !python@lemmy.ml
  • !powershell@lemmy.ml
  • !julia@lemmy.ml
  • !iosprogramming@lemmy.ml

Systems

  • !rust@lemmy.ml
  • !cpp@lemmy.ml
  • !c_programming@lemmy.ml

Functional Programming

  • !haskell@lemmy.ml
  • !fpcomplete@lemmy.ml

Also related

  • !opensource@lemmy.ml
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 9 users / day
  • 40 users / week
  • 108 users / month
  • 651 users / 6 months
  • 3 local subscribers
  • 10K subscribers
  • 383 Posts
  • 465 Comments
  • Modlog
  • mods:
  • Evan@lemmy.ml
  • Restioson@lemmy.ml
  • BE: 0.19.18
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org