properly import all-day events

This commit is contained in:
tibbi 2017-05-15 21:28:32 +02:00
parent 03413632c4
commit 3ee76cf9c3
1 changed files with 4 additions and 0 deletions

View File

@ -93,6 +93,10 @@ class IcsImporter {
curReminderMinutes.getOrElse(1, { -1 }), curReminderMinutes.getOrElse(2, { -1 }), curRepeatInterval,
curImportId, curFlags, curRepeatLimit, curRepeatRule, curEventType)
if (event.isAllDay && curEnd > curStart) {
event.endTS -= DAY
}
val eventId = context.dbHelper.insert(event)
for (exceptionTS in curRepeatExceptions) {