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 0b060f9 commit b6f80fdCopy full SHA for b6f80fd
README.md
@@ -478,6 +478,24 @@ external object JsJodaTimeZoneModule
478
private val jsJodaTz = JsJodaTimeZoneModule
479
```
480
481
+#### Note about time zones in Wasm/WASI
482
+
483
+By default, there's only one time zone available in Kotlin/Wasm WASI: the `UTC` time zone with a fixed offset.
484
485
+If you want to use all time zones in Kotlin/Wasm WASI platform, you need to add the following dependency:
486
487
+```kotlin
488
+kotlin {
489
+ sourceSets {
490
+ val wasmWasiMain by getting {
491
+ dependencies {
492
+ implementation("kotlinx-datetime-zoneinfo", "2024a-spi.0.6.0-RC.2")
493
+ }
494
495
496
+}
497
+```
498
499
### Maven
500
501
Add a dependency to the `<dependencies>` element. Note that you need to use the platform-specific `-jvm` artifact in Maven.
0 commit comments