Circleci fix (#36)

- test fix
This commit is contained in:
2023-08-18 22:52:28 +01:00
committed by GitHub
parent baa76e436c
commit c5ac726547
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ class DateDialog(
private val dateSetListener: OnDateSetListener =
OnDateSetListener { _, year, month, dayOfMonth ->
val date = DateUtils.getDateString(year, month, dayOfMonth)
val date = DateUtils.getDateString(year, month + 1, dayOfMonth)
dateSelected(date)
editText.setText(date)
editText.error = null

View File

@@ -41,7 +41,7 @@ object DateUtils {
fun getDateString(year: Int, month: Int, dayOfMonth: Int): String {
val date = LocalDate.now()
.withYear(year)
.withMonthOfYear(month + 1)
.withMonthOfYear(month)
.withDayOfMonth(dayOfMonth)
return date.toString(GLOBAL_FORMAT)
}