add an end date to exported all-day events
This commit is contained in:
parent
3ee76cf9c3
commit
0eb8caa60b
|
@ -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)}") }
|
||||||
|
|
Loading…
Reference in New Issue