Closed mtrakal closed 2 years ago
You need to include first day too.
calendars.add(calendar) calendar.add(Calendar.DATE, it.toInt())
call calendar.add after calendars.add still hold same reference and update object in calendars list. So it increase +1 day to original object...
calendar.add
calendars.add
calendars
You need to include first day too.
call
calendar.add
aftercalendars.add
still hold same reference and update object incalendars
list. So it increase +1 day to original object...