Skip to content

Commit a2dda0c

Browse files
committed
Revert commenting out "set duration to null"
1 parent c3a393e commit a2dda0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/main/kotlin/at/bitfire/synctools/mapping/calendar/AndroidEventProcessor.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class AndroidEventProcessor(
147147
if (duration is Duration)
148148
duration = Period.ofDays(duration.toDays().toInt())
149149
tsEnd = (startDate + duration).toEpochDay() * TimeApiExtensions.MILLIS_PER_DAY
150-
//duration = null
150+
duration = null
151151
}
152152

153153
if (tsEnd != null) {
@@ -188,7 +188,7 @@ class AndroidEventProcessor(
188188
// Some servers have problems with DURATION, so we always generate DTEND.
189189
val zonedStart = dtStartDateTime.toZonedDateTime()
190190
tsEnd = (zonedStart + duration).toInstant().toEpochMilli()
191-
//duration = null
191+
duration = null
192192
}
193193

194194
if (tsEnd != null) {

0 commit comments

Comments
 (0)