This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-07
Channels
- # aleph (15)
- # beginners (186)
- # boot (11)
- # bristol-clojurians (1)
- # clara (1)
- # cljdoc (2)
- # cljs-dev (5)
- # clojure (57)
- # clojure-austin (1)
- # clojure-dev (87)
- # clojure-italy (7)
- # clojure-spec (5)
- # clojure-uk (56)
- # clojurescript (18)
- # cursive (29)
- # data-science (10)
- # datomic (84)
- # duct (83)
- # figwheel-main (4)
- # fulcro (42)
- # jobs (3)
- # lambdaisland (2)
- # off-topic (28)
- # parinfer (3)
- # portkey (3)
- # re-frame (28)
- # reitit (7)
- # remote-jobs (8)
- # shadow-cljs (29)
- # spacemacs (30)
- # specter (6)
- # sql (8)
- # tools-deps (60)
Hi, is anyone able to use pgsql with timezones properly? according to docs, OffsetDateTime should be available if java8 is running
(->> (clojure.java.jdbc/query {:datasource datasource} "select '2018-08-31'::timestamp without time zone as t1, '2018-08-31'::timestamp with time zone as t2;")
first
vals
(map #(.getTimezoneOffset %)))
=> (-60 -60)
I don’t have direct answer but this helped me when I was confused http://blog.untrod.com/2016/08/actually-understanding-timezones-in-postgresql.html
@mping Recommendation: always run your production infrastructure on UTC -- configure your O/S, your database, and your JVM for all processes to be UTC, with the servers set to NTP sync. It'll save a lot of complications. Timezones are hard.