File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -478,6 +478,24 @@ external object JsJodaTimeZoneModule
478478private val jsJodaTz = JsJodaTimeZoneModule
479479```
480480
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+
481499### Maven
482500
483501Add a dependency to the ` <dependencies> ` element. Note that you need to use the platform-specific ` -jvm ` artifact in Maven.
You can’t perform that action at this time.
0 commit comments