Skip to content

Commit

Permalink
This should fix missing start date
Browse files Browse the repository at this point in the history
  • Loading branch information
NovaFox161 committed Mar 27, 2024
1 parent 4c3f0ca commit 76c4a32
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -35,7 +35,7 @@ fun MutableList<Event>.groupByDate(): Map<ZonedDateTime, List<Event>> {
.with(TemporalAdjusters.ofDateAdjuster { identity -> identity })

// Get a list of all days between the start and end dates
val days = mutableListOf<ZonedDateTime>()
val days = mutableListOf<ZonedDateTime>(startDate, endDate)
var current = startDate
while (current.isBefore(endDate)) {
current = current.plusDays(1)
Expand Down

0 comments on commit 76c4a32

Please sign in to comment.