fix #797, fix some glitch related to monthly repetition at the end of the month

This commit is contained in:
tibbi 2019-03-06 19:00:09 +01:00
parent 411490000f
commit 0cc0aa96df

View File

@ -80,7 +80,7 @@ data class Event(
while (newDateTime.dayOfMonth().maximumValue < Formatter.getDateTimeFromTS(original.startTS).dayOfMonth().maximumValue) { while (newDateTime.dayOfMonth().maximumValue < Formatter.getDateTimeFromTS(original.startTS).dayOfMonth().maximumValue) {
newDateTime = newDateTime.plusMonths(repeatInterval / MONTH) newDateTime = newDateTime.plusMonths(repeatInterval / MONTH)
newDateTime = newDateTime.withDayOfMonth(newDateTime.dayOfMonth().maximumValue) newDateTime = newDateTime.withDayOfMonth(currStart.dayOfMonth)
} }
return newDateTime return newDateTime
} }