Fix reminders for tasks
This commit is contained in:
parent
3c0ea68d29
commit
29770759cb
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ impl Layout {
|
|||
fn layout_task(&mut self, index: usize, entry: &Entry) {
|
||||
if let Some(dates) = entry.dates {
|
||||
let (start, end) = dates.start_end();
|
||||
if (start - self.today).num_days() < 7 {
|
||||
if self.today < start && (start - self.today).num_days() < 7 {
|
||||
// TODO Make this adjustable, maybe even per-command
|
||||
let days = (start - self.today).num_days();
|
||||
self.insert(self.today, LayoutEntry::ReminderUntil(index, days));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue