andrewmcveigh / cljs-time

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

cannot parse feb 29th #145

Open jleonard-r7 opened 2 years ago

jleonard-r7 commented 2 years ago
utils.dates=> (def parsed (tf/parse (tf/formatter "MMM D") "Feb 29"))
#error {:message "Date is not valid", :data {:type :invalid-date, :date {:months 2, :days 29}, :errors {:days 29}}}

It should be able to parse this into the year 2000 (as all of the other year-less dates are parsed). And 2000 actually was apparently a leap year as well (which makes it a good default for these).

kovasap commented 4 months ago

I'm having the same problem