Skip to content

Commit 8391eff

Browse files
committed
Try to find the edge cases that work across platforms
1 parent c96d955 commit 8391eff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/common/test/samples/InstantSamples.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,11 @@ class InstantSamples {
234234

235235
@Test
236236
fun minusDateTimeUnit() {
237-
val startInstant = Instant.parse("2024-05-02T08:55:40.322Z")
237+
val startInstant = Instant.parse("2024-03-28T02:04:56.256Z")
238238
val twoYearsEarlierInBerlin = startInstant.minus(2, DateTimeUnit.YEAR, TimeZone.of("Europe/Berlin"))
239-
check(twoYearsEarlierInBerlin == Instant.parse("2022-05-02T08:55:40.322Z"))
239+
check(twoYearsEarlierInBerlin == Instant.parse("2022-03-28T01:04:56.256Z"))
240240
val twoYearsEarlierInCairo = startInstant.minus(2, DateTimeUnit.YEAR, TimeZone.of("Africa/Cairo"))
241-
check(twoYearsEarlierInCairo == Instant.parse("2022-05-02T09:55:40.322Z"))
241+
check(twoYearsEarlierInCairo == Instant.parse("2022-03-28T02:04:56.256Z"))
242242
}
243243

244244
@Test

0 commit comments

Comments
 (0)