diff options
Diffstat (limited to 'calendar/gui/calendar-model.c')
-rw-r--r-- | calendar/gui/calendar-model.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c index f75499f4da..b9c11e16ef 100644 --- a/calendar/gui/calendar-model.c +++ b/calendar/gui/calendar-model.c @@ -603,11 +603,14 @@ get_is_overdue (CalComponent *comp) goto out; } - /* Third, are we overdue as of right now? */ + /* Third, are we overdue as of right now? We use <= in the + * comparison below so that the table entries change color + * immediately. + */ t = icaltime_as_timet (*dt.value); - if (t < time (NULL)) + if (t <= time (NULL)) retval = TRUE; else retval = FALSE; |