kraanzu / dooit

An awesome TUI todo manager
https://pypi.org/project/dooit/
MIT License
2.05k stars 97 forks source link

[BUG] day is out of range for month error when switching date style if date is last day of a month #171

Open hansemschnokeloch opened 7 months ago

hansemschnokeloch commented 7 months ago

Describe the bug πŸ› If a due date is the last day of a month, switching date style raise a ValueError: days is out of range for month error

To Reproduce 🐣 Steps to reproduce the behavior:

  1. Enter a due date that is the last day of a month (example: 30-06-2024)
  2. Switch due date style with D key (shift d)
  3. See error

Screenshots 🧐 Capture d’écran du 2024-02-09 11-04-45

Desktop (please complete the following information): πŸ€–

kraanzu commented 7 months ago

Ah, edge case. Thanks for opening the issue! I'll look into it :)