properly send info about multiple days long all-day events to caldav
This commit is contained in:
parent
77a6a0fa9d
commit
5765bfa644
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue