Skip to content

Commit 5bc9afa

Browse files
committed
Comments
1 parent 6ab9684 commit 5bc9afa

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/builder/DurationBuilder.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class DurationBuilder: AndroidEntityBuilder {
6060
So we have to recalculate the months/years to days according to their position in the calendar.
6161
6262
The calendar provider accepts every DURATION that `com.android.calendarcommon2.Duration` can parse,
63-
which is weeks, days, hours, minutes and seconds. */
63+
which is weeks, days, hours, minutes and seconds, like for the RFC 5545 duration. */
6464
val durationStr = alignedDuration.toRfc5545Duration(dtStart.date.toInstant())
6565
values.put(Events.DURATION, durationStr)
6666
}
@@ -81,7 +81,7 @@ class DurationBuilder: AndroidEntityBuilder {
8181
if (DateUtils.isDate(dtStart)) {
8282
// DTSTART is DATE
8383
return if (amount is java.time.Duration) {
84-
// amount is Duration, change to Period of seconds instead
84+
// amount is Duration, change to Period of days instead
8585
Period.ofDays(amount.toDays().toInt())
8686
} else {
8787
// amount is already Period

0 commit comments

Comments
 (0)