Parsing dates involving a day of month without a year specified is ambiguious
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.1k
- Forks
- 233
- Avg merge
- 1h 44m
- Merged PRs (30d)
- 1
Description
When running khal under Python 3.13:
/src/khal/parse_datetime.py:82: DeprecationWarning: Parsing dates involving a day of month without a year specified is ambiguious
and fails to parse leap day. The default behavior will change in Python 3.15
to either always raise an exception or to use a different default year (TBD).
To avoid trouble, add a specific year to the input & format.
See https://github.com/python/cpython/issues/70647.
dtstart_struct = strptime(dtstring, dateformat)
Leaving this issue here as a reminder to keep an eye open, and in case issues arise related to this.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read khal/parse_datetime.py around line 82 and the linked CPython issue 70647 first. The report defines no requested behavior or test, so the Python 3.15 outcome and desired handling need agreement before work can be scoped; done would require an agreed, tested resolution for the warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100