diff options
Diffstat (limited to 'calendar/gui/calendar-model.c')
-rw-r--r-- | calendar/gui/calendar-model.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/calendar/gui/calendar-model.c b/calendar/gui/calendar-model.c index ebe38ab6a3..9ee184cee6 100644 --- a/calendar/gui/calendar-model.c +++ b/calendar/gui/calendar-model.c @@ -673,9 +673,13 @@ get_due_status (CalendarModel *model, CalComponent *comp) retval = CALENDAR_MODEL_DUE_FUTURE; } else { /* Get the current time in the same timezone as the DUE date.*/ - /* FIXME: TIMEZONES: Handle error. */ status = cal_client_get_timezone (model->priv->client, dt.tzid, &zone); + if (status != CAL_CLIENT_GET_SUCCESS) { + retval = CALENDAR_MODEL_DUE_FUTURE; + goto out; + } + now_tt = icaltime_current_time_with_zone (zone); if (icaltime_compare (*dt.value, now_tt) <= 0) |