make the repeat limit last day inclusive

This commit is contained in:
tibbi 2017-02-05 22:42:05 +01:00
parent 86c88cd106
commit 69306551d2
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
} }
private val repetitionLimitDateSetListener = DatePickerDialog.OnDateSetListener { view, year, monthOfYear, dayOfMonth -> private val repetitionLimitDateSetListener = DatePickerDialog.OnDateSetListener { view, year, monthOfYear, dayOfMonth ->
val repeatLimitDateTime = DateTime().withDate(year, monthOfYear + 1, dayOfMonth).withTime(0, 0, 0, 0) val repeatLimitDateTime = DateTime().withDate(year, monthOfYear + 1, dayOfMonth).withTime(23, 59, 59, 0)
if (repeatLimitDateTime.seconds() < mEvent.endTS) { if (repeatLimitDateTime.seconds() < mEvent.endTS) {
mRepeatLimit = 0 mRepeatLimit = 0
} else { } else {