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
1 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ class IcsExporter {
if (event.isAllDay) { if (event.isAllDay) {
out.writeLn("$DTSTART;$VALUE=$DATE:${Formatter.getDayCodeFromTS(event.startTS)}") out.writeLn("$DTSTART;$VALUE=$DATE:${Formatter.getDayCodeFromTS(event.startTS)}")
out.writeLn("$DTEND;$VALUE=$DATE:${Formatter.getDayCodeFromTS(event.endTS + DAY)}")
} else { } else {
event.startTS.let { out.writeLn("$DTSTART:${Formatter.getExportedTime(it)}") } event.startTS.let { out.writeLn("$DTSTART:${Formatter.getExportedTime(it)}") }
event.endTS.let { out.writeLn("$DTEND:${Formatter.getExportedTime(it)}") } event.endTS.let { out.writeLn("$DTEND:${Formatter.getExportedTime(it)}") }