pimutils / pimutils/khal

Parsing dates involving a day of month without a year specified is ambiguious

Open
#1,435 2 comments 0 reactions 0 assignees View on GitHub

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.

See: https://github.com/python/cpython/issues/70647

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.