aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-model.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/calendar-model.c')
-rw-r--r--calendar/gui/calendar-model.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c
index d4b5185351..ebe38ab6a3 100644
--- a/calendar/gui/calendar-model.c
+++ b/calendar/gui/calendar-model.c
@@ -633,9 +633,12 @@ typedef enum {
static CalendarModelDueStatus
get_due_status (CalendarModel *model, CalComponent *comp)
{
+ CalendarModelPrivate *priv;
CalComponentDateTime dt;
CalendarModelDueStatus retval;
+ priv = model->priv;
+
cal_component_get_due (comp, &dt);
/* First, do we have a due date? */
@@ -659,7 +662,7 @@ get_due_status (CalendarModel *model, CalComponent *comp)
if (dt.value->is_date) {
int cmp;
- now_tt = icaltime_today ();
+ now_tt = icaltime_current_time_with_zone (priv->zone);
cmp = icaltime_compare_date_only (*dt.value, now_tt);
if (cmp < 0)