[evolution/gnome-3-26] Bug 788686 - To Do bar higlights as overdue tasks with DATE-only Due



commit f2a352bba3f73e584c7eee1ca9093aa6c548cde1
Author: Milan Crha <mcrha redhat com>
Date:   Mon Oct 9 19:07:53 2017 +0200

    Bug 788686 - To Do bar higlights as overdue tasks with DATE-only Due

 src/calendar/gui/e-to-do-pane.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/calendar/gui/e-to-do-pane.c b/src/calendar/gui/e-to-do-pane.c
index 9f95061..ee91381 100644
--- a/src/calendar/gui/e-to-do-pane.c
+++ b/src/calendar/gui/e-to-do-pane.c
@@ -742,7 +742,8 @@ etdp_get_comp_colors (EToDoPane *to_do_pane,
 
                        now = icaltime_current_time_with_zone (default_zone);
 
-                       if (icaltime_compare (itt, now) <= 0) {
+                       if ((dt.value->is_date && icaltime_compare_date_only (itt, now) < 0) ||
+                           (!dt.value->is_date && icaltime_compare (itt, now) <= 0)) {
                                bgcolor = to_do_pane->priv->overdue_color;
                        } else if (out_nearest_due) {
                                time_t due_tt;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]