mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 12:20:51 +01:00
properly import all-day events
This commit is contained in:
parent
03413632c4
commit
3ee76cf9c3
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user