Skip to content

Commit f4fcea0

Browse files
committed
Update README.md
1 parent d30fd5b commit f4fcea0

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Diff for: README.md

+18
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,24 @@ external object JsJodaTimeZoneModule
478478
private 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

483501
Add a dependency to the `<dependencies>` element. Note that you need to use the platform-specific `-jvm` artifact in Maven.

0 commit comments

Comments
 (0)