quick-add-popover: adjust end date properly

Subtracting 1 from the first day of the month leads to an invalid date
being shown: use a proper function to adjust the date.

https://bugzilla.gnome.org/show_bug.cgi?id=763015
This commit is contained in:
fosero
2016-03-14 16:54:54 -03:00
committed by Georges Basile Stavracas Neto
parent c67d52092c
commit 2ac228a9b8
+1 -1
View File
@@ -231,7 +231,7 @@ update_header (GcalQuickAddPopover *self)
dtend = datetime_to_icaltime (self->date_end);
if (dtend->is_date)
dtend->day--;
icaltime_adjust (dtend, -1, 0, 0, 0);
/* Translators:
* this is the format string for representing a date consisting of a month name