Skip to content

Commit 22ad01e

Browse files
carmenyhcopybara-github
authored andcommitted
What breaks if I do this?
PiperOrigin-RevId: 806235046
1 parent 6880dd2 commit 22ad01e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/testing/FakeCalendar.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import java.time.LocalDate
2121
import java.time.ZoneId
2222
import java.util.Date
2323

24-
class FakeCalendar(val today: LocalDate = LocalDate.of(2024, 10, 20)) {
24+
class FakeCalendar(val today: LocalDate = LocalDate.now()) {
2525
fun today(): Date = today.toDate()
2626

2727
fun now(): Instant = today.atStartOfDay(ZoneId.of("UTC")).toInstant()

0 commit comments

Comments
 (0)