mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-04-02 20:41:15 +02: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.RRULE, Parser().getShortRepeatInterval(event))
|
||||||
put(CalendarContract.Events.EVENT_TIMEZONE, TimeZone.getDefault().toString())
|
put(CalendarContract.Events.EVENT_TIMEZONE, TimeZone.getDefault().toString())
|
||||||
|
|
||||||
|
if (event.getIsAllDay() && event.endTS > event.startTS)
|
||||||
|
event.endTS += DAY
|
||||||
|
|
||||||
if (event.repeatInterval > 0) {
|
if (event.repeatInterval > 0) {
|
||||||
put(CalendarContract.Events.DURATION, Parser().getDurationString(durationMinutes))
|
put(CalendarContract.Events.DURATION, Parser().getDurationString(durationMinutes))
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user