We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27128e8 commit 2198821Copy full SHA for 2198821
core/linux/src/internal/TimeZoneNative.kt
@@ -18,6 +18,8 @@ internal actual fun getAvailableZoneIds(): Set<String> =
18
19
private val tzdb = runCatching { TzdbOnFilesystem() }
20
21
+// This workaround is needed for Debian versions Etch (4.0) - Jessie (8.0), where the timezone data is organized differently.
22
+// See: https://github.com/Kotlin/kotlinx-datetime/issues/430
23
@OptIn(ExperimentalForeignApi::class)
24
private fun getTimezoneFromEtcTimezone(): String? {
25
val timezoneContent = Path.fromString("${root}etc/timezone").readBytes()?.toKString()?.trim() ?: return null
0 commit comments