Skip to content

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

@WhyNotHugo

Description

@WhyNotHugo

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: python/cpython#70647

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions