File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -478,6 +478,24 @@ external object JsJodaTimeZoneModule
478
478
private val jsJodaTz = JsJodaTimeZoneModule
479
479
```
480
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
+
481
499
### Maven
482
500
483
501
Add 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