Skip to content

Commit

Permalink
fix #66
Browse files Browse the repository at this point in the history
  • Loading branch information
loper7 committed Sep 13, 2022
1 parent 289447d commit 92e0bed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,6 @@ class DateTimeController : BaseDateTimeController() {

override fun setDefaultMillisecond(time: Long) {
if (time == 0L) return
if (time < minCalendar?.timeInMillis ?: 0) return
if (time > maxCalendar?.timeInMillis ?: 0) return

calendar.clear()
calendar.timeInMillis = time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ open class CardDatePickerDialog(context: Context) :
tv_choose_date?.text = Html.fromHtml(str)
}
}
else -> tv_choose_date?.text = StringUtils.conversionTime(millisecond, "yyyy年MM月dd日 ") + StringUtils.getWeek(millisecond)
else -> tv_choose_date?.text =
StringUtils.conversionTime(millisecond, "yyyy年MM月dd日 ") + StringUtils.getWeek(
millisecond
)
}
}
}
Expand Down

0 comments on commit 92e0bed

Please sign in to comment.