Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot parse feb 29th #145

Open
jleonard-r7 opened this issue Dec 8, 2021 · 1 comment
Open

cannot parse feb 29th #145

jleonard-r7 opened this issue Dec 8, 2021 · 1 comment

Comments

@jleonard-r7
Copy link

jleonard-r7 commented Dec 8, 2021

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
Copy link

kovasap commented Apr 3, 2024

I'm having the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants