Skip to content

Commit b4f5cb3

Browse files
#430: Add differentTimezonesTest
1 parent e261749 commit b4f5cb3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

core/linux/test/TimeZoneNativeTest.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ class TimeZoneNativeTest {
4646
assertEquals(TimeZone.of("Europe/Oslo"), tz, "PWD: ${pwd()}")
4747
}
4848

49+
@Test
50+
fun correctLocaltimeCopyTest() {
51+
root = "${RESOURCES}correct-localtime-copy/"
52+
53+
val tz = TimeZone.currentSystemDefault()
54+
assertEquals(TimeZone.of("Europe/Oslo"), tz)
55+
}
56+
4957
@Test
5058
fun fallsBackToUTC() {
5159
root = "${RESOURCES}missing-localtime/"

0 commit comments

Comments
 (0)