make the repeat limit last day inclusive
This commit is contained in:
parent
86c88cd106
commit
69306551d2
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue