This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-18
Channels
- # announcements (1)
- # aws (13)
- # beginners (55)
- # calva (8)
- # cider (73)
- # cljs-dev (96)
- # clojure (119)
- # clojure-europe (4)
- # clojure-italy (41)
- # clojure-nl (14)
- # clojure-uk (6)
- # clojurescript (90)
- # cursive (14)
- # data-science (1)
- # datomic (20)
- # dirac (1)
- # emacs (32)
- # figwheel-main (11)
- # fulcro (81)
- # hoplon (2)
- # jobs (1)
- # lein-figwheel (2)
- # luminus (1)
- # lumo (19)
- # nyc (3)
- # off-topic (60)
- # other-languages (1)
- # pedestal (5)
- # quil (1)
- # re-frame (3)
- # reagent (3)
- # reitit (5)
- # remote-jobs (1)
- # ring-swagger (2)
- # shadow-cljs (43)
- # sql (15)
- # tools-deps (20)
- # vim (21)
- # yada (6)
I'm working through the 'web development with clojure 2nd' book. After creating a guestbook table, saving a message and retrieving the saved message, the book expects the output to be ({:timestamp #inst "2015-01-18T16:22:10.010000000-00:00" :message "Hello, World" :name "Bob" :id 1})
. However, in my case it doesn't return an #inst
, but a #object[java.time.LocalDateTime 0x3a43c190 "2019-04-18T13:07:36.662"]
. So somewhere in the stack, the (java.util.Date.)
that I stored in the H2 database, has become a java.time.LocalDateTime
object. What is the best way to get back the #inst
I've saved?