Merge pull request #977 from ddast/master

Always shift end date by one day for all-day events
This commit is contained in:
Tibor Kaputa 2019-09-17 10:18:34 +02:00 committed by GitHub
commit 111c155ea8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) put(CalendarContract.Events.RRULE, repeatRule)
} }
if (event.getIsAllDay() && event.endTS > event.startTS) if (event.getIsAllDay() && event.endTS >= event.startTS)
event.endTS += DAY event.endTS += DAY
if (event.repeatInterval > 0) { if (event.repeatInterval > 0) {