Skip to content

Commit

Permalink
Merge pull request #11 from DogusTeknoloji/feature/previous_month_day…
Browse files Browse the repository at this point in the history
…_fix

Previous month day issue fixed;
  • Loading branch information
BerkkanB authored May 23, 2022
2 parents 3b67371 + 51bbfc6 commit 8e32b31
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ fun ComposeCalendar(
LaunchedEffect(key1 = selectedYear, key2 = selectedMonth) {
calendarDate.set(Calendar.YEAR, selectedYear)
calendarDate.set(Calendar.MONTH, selectedMonth.index)
calendarDate.set(Calendar.DAY_OF_MONTH,1) //For example, if the date is 30 march and we click february, then it shows 2March because february does not have 30 days, so we set default day to 1
selectedDate = calendarDate.time
}
LaunchedEffect(key1 = selectedYear) {
Expand Down

0 comments on commit 8e32b31

Please sign in to comment.