dooit-org / dooit

An awesome TUI todo manager
MIT License
2.1k stars 97 forks source link

[BUG] Recurring due dates changing from 1 day to 1 year #190

Open silentjay opened 1 month ago

silentjay commented 1 month ago

When setting a task to recur daily and the due date to today's date, complete task and the next day the due date remains the same date but changes to 12 months in the past/future.

Here's the steps:

Looking at one of these tasks in the DB file looks like this:

      - - uuid: todo_99f469d0-7878-4300-abc3-4e2b61f292ed
          status: COMPLETED
          urgency: 2
          description: Make Bed
          due: '1758409200.0'
          effort: ''
          recurrence: 1d

According to the unix timestamp that is due today but the UI shows:

image

If i'm doing something completely wrong or this is a bug. dooit version 2.2.0.