khal
khal copied to clipboard
Parsing dates involving a day of month without a year specified is ambiguious
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
I get this error message as well. Is there any way to suppress it?
I guess you could just run python -m khal.
Anyway, please fix this issue. First, it is super annoying. Second, it needs to be fixed sometime anyway so better do it now and save the users from this annoyance.
Also, there are distributions like Arch Linux that are pretty fast with adopting new Python version. So this will break khal on these distros in october 2026.