File tree 2 files changed +28
-0
lines changed 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,13 @@ kotlin {
221
221
runtimeOnly(project(" :kotlinx-datetime-zoneinfo" ))
222
222
}
223
223
}
224
+
225
+ val jvmTest by getting {
226
+ dependencies {
227
+ implementation(" org.testcontainers:testcontainers:1.19.7" )
228
+ implementation(" org.testcontainers:junit-jupiter:1.19.7" )
229
+ }
230
+ }
224
231
}
225
232
}
226
233
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright 2019-2025 JetBrains s.r.o. and contributors.
3
+ * Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file.
4
+ */
5
+
6
+ package testcontainers
7
+
8
+ import kotlinx.datetime.*
9
+ import org.testcontainers.junit.jupiter.Testcontainers
10
+ import kotlin.test.Test
11
+ import kotlin.test.assertNotEquals
12
+
13
+ @Testcontainers
14
+ class TimeZoneTest {
15
+ @Test
16
+ fun test () {
17
+ val tz = TimeZone .currentSystemDefault()
18
+ assertNotEquals(TimeZone .UTC , tz)
19
+ println (" System time zone: $tz " )
20
+ }
21
+ }
You can’t perform that action at this time.
0 commit comments