diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsExporter.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsExporter.kt index 0dd8658a0..4b73236e3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsExporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsExporter.kt @@ -33,6 +33,7 @@ class IcsExporter { if (event.isAllDay) { out.writeLn("$DTSTART;$VALUE=$DATE:${Formatter.getDayCodeFromTS(event.startTS)}") + out.writeLn("$DTEND;$VALUE=$DATE:${Formatter.getDayCodeFromTS(event.endTS + DAY)}") } else { event.startTS.let { out.writeLn("$DTSTART:${Formatter.getExportedTime(it)}") } event.endTS.let { out.writeLn("$DTEND:${Formatter.getExportedTime(it)}") }