add an end date to exported all-day events

This commit is contained in:
tibbi 2017-05-15 21:33:25 +02:00
parent 3ee76cf9c3
commit 0eb8caa60b

View file

@ -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)}") }