quick-add-popover: only increase day on single day events

This commit is contained in:
Georges Basile Stavracas Neto
2016-09-28 01:11:14 -03:00
parent 653fb86d16
commit be3833b977
+1 -1
View File
@@ -448,7 +448,7 @@ edit_or_create_event (GcalQuickAddPopover *self,
date_end = g_date_time_new (tz,
g_date_time_get_year (self->date_end),
g_date_time_get_month (self->date_end),
g_date_time_get_day_of_month (self->date_end)+ (all_day ? 1 : 0),
g_date_time_get_day_of_month (self->date_end) + (single_day && all_day ? 1 : 0),
all_day ? 0 : g_date_time_get_hour (now) + (is_today ? 1 : 0),
all_day ? 0 : g_date_time_get_minute (now),
all_day ? 0 : g_date_time_get_second (now));