mirror of
https://github.com/aculix/negotium.git
synced 2026-09-11 07:28:17 +00:00
5ce5b13ecd
Replaces checkAndMigrateTasks, which never ran. Its guard compared currentDate, set from new Date() at init, against a fresh new Date() a few milliseconds later in onMount, so it was never true. Unfinished tasks have been sitting under old date keys ever since. The rule now: unfinished tasks from every prior day move into today, oldest first, ahead of whatever is already there. Completed ones are dropped and the old key deleted. It spans gaps, which the original never did even in theory, since it only looked one day back. now is a parameter. That's the part that makes the boundary testable.