cljs-time icon indicating copy to clipboard operation
cljs-time copied to clipboard

Handle nano-second precision

Open hkjels opened this issue 6 years ago • 0 comments

(coerce/to-date "2018-03-08T09:46:48+01:00")
;; => #inst "2018-03-08T08:46:48.000-00:00"
;; Yay!

(coerce/to-date "2018-03-08T09:46:48.7833333+01:00")
;; => nil
;; Nai!

In this case, replacing coerce/to-date with js/Date. worked just fine

hkjels avatar Mar 12 '18 08:03 hkjels