mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-03-16 11:20:12 +01:00
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…
x
Reference in New Issue
Block a user