Closed jpgoldberg closed 10 months ago
I now see that this constraint is coming from the python standard datetime library.
>>> from datetime import date
>>> date.fromisoformat('1979-09')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: Invalid isoformat string: '1979-09'
Oh well. I guess this is a difficult feature request instead of a quick fix.
It was indeed a feature request but a necessary one. If the date data is not there with month and day precision, it should be totally fine with RenderCV.
I coded a custom date parser. I didn't write tests for it yet, but it seemed fine with a few manual runs. I will release RenderCV with this new feature in ~20 minutes.
Thank you!
I don't see a way to reopen this issue, so I will create a new one pointing out that the fix ran in a problem.
I would like to specify start and end dates in terms of months. For example
As you might imagine, I am disinclined to dig through 40 year old records to determine the precise day of the month for those events, and anyone reading the CV isn't going to care.
Describe the solution you'd like
start_date
andend_date
should allow YYYY-MM and YYYY forms of RFC3339 dates.Additional context
I suspect that "1979-09" is a valid RFC3339 date, in which case my feature request may be considered a bug report.
I haven't looked at the source code (yet) to see if I can produce a useful pull request.