properly send info about multiple days long all-day events to caldav

This commit is contained in:
tibbi 2017-08-16 00:05:08 +02:00
parent 77a6a0fa9d
commit 5765bfa644
1 changed files with 3 additions and 0 deletions

View File

@ -349,6 +349,9 @@ fun Context.addCalDAVEvent(event: Event, calendarId: Long) {
put(CalendarContract.Events.RRULE, Parser().getShortRepeatInterval(event))
put(CalendarContract.Events.EVENT_TIMEZONE, TimeZone.getDefault().toString())
if (event.getIsAllDay() && event.endTS > event.startTS)
event.endTS += DAY
if (event.repeatInterval > 0) {
put(CalendarContract.Events.DURATION, Parser().getDurationString(durationMinutes))
} else {