Skip to content

Commit 2198821

Browse files
#430: Add comment about workaround
1 parent 27128e8 commit 2198821

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/linux/src/internal/TimeZoneNative.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ internal actual fun getAvailableZoneIds(): Set<String> =
1818

1919
private val tzdb = runCatching { TzdbOnFilesystem() }
2020

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
2123
@OptIn(ExperimentalForeignApi::class)
2224
private fun getTimezoneFromEtcTimezone(): String? {
2325
val timezoneContent = Path.fromString("${root}etc/timezone").readBytes()?.toKString()?.trim() ?: return null

0 commit comments

Comments
 (0)