aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/schedule-page.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs/schedule-page.c')
-rw-r--r--calendar/gui/dialogs/schedule-page.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/calendar/gui/dialogs/schedule-page.c b/calendar/gui/dialogs/schedule-page.c
index b062088bc8..97029704a2 100644
--- a/calendar/gui/dialogs/schedule-page.c
+++ b/calendar/gui/dialogs/schedule-page.c
@@ -236,7 +236,12 @@ update_time (SchedulePage *spage, CalComponentDateTime *start_date, CalComponent
}
start_tt = *start_date->value;
- end_tt = *end_date->value;
+ if (!end_date->value && start_tt.is_date) {
+ end_tt = start_tt;
+ icaltime_adjust (&end_tt, 1, 0, 0, 0);
+ } else {
+ end_tt = *end_date->value;
+ }
/* If the end zone is not the same as the start zone, we convert it. */
priv->zone = start_zone;