Skip to content

Commit 6e3df8a

Browse files
committed
Fix test
1 parent 8b1b62b commit 6e3df8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sentry/src/test/java/io/sentry/util/MapObjectWriterTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class MapObjectWriterTest {
6363
writer.name("InetAddress").value(logger, Inet4Address.getByName("1.1.1.1"))
6464
writer.name("UUID").value(logger, UUID.fromString("00000000-1111-2222-3333-444444444444"))
6565
writer.name("Currency").value(logger, Currency.getInstance("EUR"))
66-
writer.name("Calendar").value(logger, Calendar.getInstance().apply { timeInMillis = 0 })
66+
writer.name("Calendar").value(logger, Calendar.getInstance(TimeZone.getTimeZone("UTC")).apply { timeInMillis = 0 })
6767
writer.name("Enum").value(logger, BasicEnum.A)
6868

6969
assertEquals(null, data["null"])
@@ -98,7 +98,7 @@ class MapObjectWriterTest {
9898
kotlin.Pair("month", 0),
9999
kotlin.Pair("year", 1970),
100100
kotlin.Pair("dayOfMonth", 1),
101-
kotlin.Pair("hourOfDay", 1),
101+
kotlin.Pair("hourOfDay", 0),
102102
kotlin.Pair("minute", 0),
103103
kotlin.Pair("second", 0)
104104
),

0 commit comments

Comments
 (0)