Skip to content

Commit f5ca20c

Browse files
committed
AMEND
1 parent 3ce7681 commit f5ca20c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/common/test/InstantTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ class InstantTest {
290290
val instant1 = Instant.fromEpochMilliseconds(millis1)
291291
val instant2 = Instant.fromEpochMilliseconds(millis2)
292292

293-
val diff = instant1.periodUntil(instant2, TimeZone.UTC)
294-
val instant3 = instant1.plus(diff, TimeZone.UTC)
293+
val diff = instant1.periodUntil(instant2, TimeZone.currentSystemDefault())
294+
val instant3 = instant1.plus(diff, TimeZone.currentSystemDefault())
295295

296296
if (instant2 != instant3)
297297
println("start: $instant1, end: $instant2, start + diff: $instant3, diff: $diff")

0 commit comments

Comments
 (0)