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:
committed by
Georges Basile Stavracas Neto
parent
c67d52092c
commit
2ac228a9b8
@@ -231,7 +231,7 @@ update_header (GcalQuickAddPopover *self)
|
|||||||
dtend = datetime_to_icaltime (self->date_end);
|
dtend = datetime_to_icaltime (self->date_end);
|
||||||
|
|
||||||
if (dtend->is_date)
|
if (dtend->is_date)
|
||||||
dtend->day--;
|
icaltime_adjust (dtend, -1, 0, 0, 0);
|
||||||
|
|
||||||
/* Translators:
|
/* Translators:
|
||||||
* this is the format string for representing a date consisting of a month name
|
* this is the format string for representing a date consisting of a month name
|
||||||
|
|||||||
Reference in New Issue
Block a user