Skip to content

Commit

Permalink
fix: toggle date crash on last day(closes #171)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Feb 9, 2024
1 parent d0a6fe2 commit f7be687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dooit/ui/widgets/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def draw(self) -> str:

now = datetime.now()
if not due.hour:
due = due.replace(day=due.day + 1)
due += timedelta(days=1)

value = self.timedelta_to_words(due - now)

Expand Down

0 comments on commit f7be687

Please sign in to comment.