Function
isOverdue
(task: VaultTask, today: Date)
Source from the content-addressed store, hash-verified
| 342 | |
| 343 | /** Helper for UIs that need to know whether a task is overdue relative to now. */ |
| 344 | export function isOverdue(task: VaultTask, today: Date): boolean { |
| 345 | if (task.checked || task.waiting || !task.due) return false |
| 346 | return task.due < toIsoDate(today) |
| 347 | } |
| 348 | |
| 349 | /** Convert a Date to its `YYYY-MM-DD` representation in the user's local |
| 350 | * timezone — same encoding the parser produces for `due:`. Re-exported |
Tested by
no test coverage detected