File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -234,11 +234,11 @@ class InstantSamples {
234
234
235
235
@Test
236
236
fun minusDateTimeUnit () {
237
- val startInstant = Instant .parse(" 2024-05-02T08:55:40.322Z " )
237
+ val startInstant = Instant .parse(" 2024-03-28T02:04:56.256Z " )
238
238
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 " ))
240
240
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 " ))
242
242
}
243
243
244
244
@Test
You can’t perform that action at this time.
0 commit comments