Fork me on GitHub
#clojurescript
<
2017-12-23
>
doglooksgood03:12:35

hi, @mfikes I found this

[org.clojure/clojurescript "1.9.946"] -> [org.clojure/tools.reader "1.1.0"]
 overrides
[com.taoensso/sente "1.12.0"] -> [com.taoensso/encore "2.93.0"] -> [org.clojure/tools.reader "1.1.1"]
 and
[com.taoensso/sente "1.12.0"] -> [org.clojure/tools.reader "1.1.1"]
however the right version of tools.reader should be 1.1.1.

noisesmith03:12:23

you can fix that by adding an :exclusions clause to your clojurescript dep, or by explicitly asking for the tools.reader version you know you need

doglooksgood03:12:31

yes, definitely I can. but people who new to the clojurescript may meet this issue(they just create project with lein new figwheel xxx). and it's likely there's no document for this anywhere I can find.

paul93122405:12:20

Why does cljs.time.core produce 20171223T041722, UTC format with lein figwheel, but after lein uberjar it produces 1514010264180, epoch format?

paul93122405:12:17

Very much appreciated. I was able to solve my problem!

flowthing07:12:22

Yeah, I worked around the issue by formatting the date explicitly, as in something like:

(import '[goog.i18n DateTimeFormat])

(let [date-time-format (DateTimeFormat. "yyyy-MM-dd")]
  (.format date-time-format (js/Date.)))