aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-calendar-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-calendar-view.c')
-rw-r--r--calendar/gui/e-calendar-view.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c
index 12e8ec93b3..46d8722fda 100644
--- a/calendar/gui/e-calendar-view.c
+++ b/calendar/gui/e-calendar-view.c
@@ -1608,6 +1608,10 @@ e_calendar_view_new_appointment_full (ECalendarView *cal_view, gboolean all_day,
dtstart = time (NULL);
dtend = dtstart + 3600;
}
+ /* FIXME This is a rough hack to make sure "all day" is set for */
+ if ((dtend - dtstart) % (60 * 60 * 24) == 0)
+ all_day = TRUE;
+
e_calendar_view_new_appointment_for (cal_view, dtstart, dtend, all_day, meeting);
}