export ignored event dates too

This commit is contained in:
tibbi 2017-04-05 22:36:25 +02:00
parent 18fd08d07e
commit af9351cf3b
2 changed files with 8 additions and 0 deletions

View File

@ -68,6 +68,7 @@ val TRIGGER = "TRIGGER:"
val RRULE = "RRULE:"
val CATEGORIES = "CATEGORIES:"
val STATUS = "STATUS:"
val EXDATE = "EXDATE:"
val DISPLAY = "DISPLAY"
val FREQ = "FREQ"

View File

@ -37,6 +37,7 @@ class IcsExporter {
fillRepeatInterval(event, out)
fillReminders(event, out)
fillIgnoredOccurrences(event, out)
out.writeLn("$STATUS$CONFIRMED")
out.writeLn(END_EVENT)
@ -123,4 +124,10 @@ class IcsExporter {
}
return "-P${days}DT${hours}H${remainder}M0S"
}
private fun fillIgnoredOccurrences(event: Event, out: BufferedWriter) {
event.ignoreEventOccurrences.forEach {
out.writeLn("$EXDATE${Formatter.getDayCodeFromTS(it)}")
}
}
}