diff --git "a/src/main/kotlin/no/nav/hjelpemidler/soknad/db/Oppgaveinspekt\303\270r.kt" "b/src/main/kotlin/no/nav/hjelpemidler/soknad/db/Oppgaveinspekt\303\270r.kt" index c29f9124..be5e2559 100644 --- "a/src/main/kotlin/no/nav/hjelpemidler/soknad/db/Oppgaveinspekt\303\270r.kt" +++ "b/src/main/kotlin/no/nav/hjelpemidler/soknad/db/Oppgaveinspekt\303\270r.kt" @@ -76,7 +76,7 @@ internal class Oppgaveinspektør( } } -private fun midnatt() = LocalDate.now().atStartOfDay().toDate() +private fun midnatt() = LocalDate.now().plusDays(1).atStartOfDay().toDate() private fun LocalDateTime.toDate(): Date { return Date.from(this.atZone(ZoneId.systemDefault()).toInstant())