mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 12:20:51 +01:00
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 ->
|
||||
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) {
|
||||
mRepeatLimit = 0
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user