andrewmcveigh / cljs-time

A clj-time inspired date library for clojurescript.
342 stars 57 forks source link

Parsing days doesn't quite match clj-time #71

Closed mikekap closed 7 years ago

mikekap commented 8 years ago

Given:

(defn ->date [v p]
  (cljs-time.format/parse v (cljs-time.format/formatter p))

(->date "2012-1-1" "yyyy-MM-dd") gives nil (works in clj-time).

Strangely, just using (->date "2012-1-1" "yyyy-MM-d") => #inst "...", so M vs d doesn't seem consistent.