Always shift end date by one day for all-day events

Shift the end date by one day when the start and end date are equal.
Previously this was only done when the end date is already ahead of the
start date.  An event with equal start and end date is created when the
start and end times are equal before switching to all-day.
This commit is contained in:
Dennis Dast 2019-09-15 12:10:27 +02:00
parent af095ccb7d
commit d54becb446
1 changed files with 1 additions and 1 deletions

View File

@ -409,7 +409,7 @@ class CalDAVHelper(val context: Context) {
put(CalendarContract.Events.RRULE, repeatRule)
}
if (event.getIsAllDay() && event.endTS > event.startTS)
if (event.getIsAllDay() && event.endTS >= event.startTS)
event.endTS += DAY
if (event.repeatInterval > 0) {