We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6880dd2 commit 22ad01eCopy full SHA for 22ad01e
1 file changed
src/main/kotlin/testing/FakeCalendar.kt
@@ -21,7 +21,7 @@ import java.time.LocalDate
21
import java.time.ZoneId
22
import java.util.Date
23
24
-class FakeCalendar(val today: LocalDate = LocalDate.of(2024, 10, 20)) {
+class FakeCalendar(val today: LocalDate = LocalDate.now()) {
25
fun today(): Date = today.toDate()
26
27
fun now(): Instant = today.atStartOfDay(ZoneId.of("UTC")).toInstant()
0 commit comments