This is kind’a interesting. While working on https://clojure.atlassian.net/browse/CLJS-3263 I see that my test is failing.
And playing around in the repl:
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"
This is running in a noderepljs
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
thanks will take a look