This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-07-22
Channels
- # announcements (1)
- # aws (4)
- # beginners (73)
- # bristol-clojurians (1)
- # calva (7)
- # cider (5)
- # cljs-dev (11)
- # cljsrn (3)
- # clojure (30)
- # clojure-europe (24)
- # clojure-italy (2)
- # clojure-nl (3)
- # clojure-spec (7)
- # clojure-uk (69)
- # clojurescript (109)
- # cursive (21)
- # datascript (1)
- # datomic (72)
- # events (1)
- # fulcro (5)
- # graalvm (2)
- # helix (12)
- # hoplon (12)
- # jobs (2)
- # juxt (2)
- # kaocha (7)
- # keechma (1)
- # lambdaisland (5)
- # meander (18)
- # off-topic (52)
- # pathom (9)
- # re-frame (18)
- # reagent (5)
- # reitit (7)
- # sci (6)
- # shadow-cljs (76)
- # sql (9)
- # testing (4)
- # tools-deps (14)
- # xtdb (28)
This is kind’a interesting. While working on https://clojure.atlassian.net/browse/CLJS-3263 I see that my test is failing.
cljs.reader=> (def foo #inst "0985-04-12T23:20:50.520-00:00")
#'cljs.reader/foo
cljs.reader=> (.getUTCDate foo)
17
cljs.reader=>
whereas
cljs.reader=> (parse-and-validate-timestamp "0985-04-12T23:20:50.520-00:00")
[985 4 12 23 20 50 520 0]
and
cljs.reader=> (read-date "0985-04-12T23:20:50.520-00:00")
#inst "0985-04-12T23:20:50.520-00:00"
and
cljs.reader=> (read-string "#inst \"0985-04-12T23:20:50.520-00:00\"")
#inst "0985-04-12T23:20:50.520-00:00"
but
cljs.reader=> #inst "0985-04-12T23:20:50.520-00:00"
#inst "0985-04-17T23:20:50.520-00:00"
So it seems to me that #inst "0985-04-12T23:20:50.520-00:00"
is not parsed by cljs.reader ? If that is correct, where is it parsed?
@dnolen added a patch for CLJS-3200 if you are still looking for small things to add for the next release. https://clojure.atlassian.net/browse/CLJS-3200