Skip to content

Commit

Permalink
Fix issue with days since verified chart
Browse files Browse the repository at this point in the history
  • Loading branch information
bubelov committed Feb 12, 2024
1 parent cbc84f6 commit 52ec8ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/kotlin/reports/ReportsModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import java.time.Duration
import java.time.LocalDate
import java.time.ZonedDateTime
import java.time.ZoneOffset

class ReportsModel(
private val reportsRepo: ReportsRepo,
Expand Down Expand Up @@ -79,7 +79,7 @@ class ReportsModel(
first = it.date,
second = Duration.between(
avgVerificationDate.toZonedDateTime()!!,
ZonedDateTime.now(),
it.date.atStartOfDay(ZoneOffset.UTC),
).toDays(),
)
}
Expand Down

0 comments on commit 52ec8ff

Please sign in to comment.