Skip to content

Commit

Permalink
[REFACTOR] #125 : 달력 부분 해당 달은 일의 자리 일 때 01으로 출력되고, 이전 달이나 다음 달에서 출력될 …
Browse files Browse the repository at this point in the history
…때는 1이 되는 이슈 수정
  • Loading branch information
tgyuuAn committed Feb 17, 2024
1 parent d83b5f7 commit 50f9aed
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ private fun CalendarMonthItem(
val thisMonthFirstDayOfWeek = selectedDate.withDayOfMonth(1).dayOfWeek
val thisMonthDaysToShow: List<Int> = (1..thisMonthLastDate).toList()
items(thisMonthDaysToShow) { day ->
val date = selectedDate.withDayOfMonth(day)
val currentLocalDate = LocalDate.of(
selectedDate.year,
selectedDate.month,
Expand All @@ -225,7 +224,7 @@ private fun CalendarMonthItem(
val isEvent = (currentLocalDate in eventDates)
val isSelected = (day == selectedDate.dayOfMonth)
CalendarDayText(
text = com.wap.wapp.core.commmon.util.DateUtil.ddFormatter.format(date),
text = day.toString(),
color = getDayColor(day + thisMonthFirstDayOfWeek.value),
isEvent = isEvent,
isSelected = isSelected,
Expand Down

0 comments on commit 50f9aed

Please sign in to comment.