Skip to content

Commit 518242b

Browse files
authored
Add info about @js-joda/timezone npm dependency versions (#589)
1 parent deb897d commit 518242b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,14 +486,15 @@ dependencies {
486486

487487
By default, there's only one time zone available in Kotlin/JS: the `SYSTEM` time zone with a fixed offset.
488488

489-
If you want to use all time zones in Kotlin/JS platform, you need to add the following npm dependency:
489+
If you want to use all time zones in Kotlin/JS platform, you need to add the following npm dependency
490+
(replace X.X.X below with the latest version [from here](https://www.npmjs.com/package/@js-joda/timezone?activeTab=versions)):
490491

491492
```kotlin
492493
kotlin {
493494
sourceSets {
494495
val jsMain by getting {
495496
dependencies {
496-
implementation(npm("@js-joda/timezone", "2.3.0"))
497+
implementation(npm("@js-joda/timezone", "X.X.X"))
497498
}
498499
}
499500
}
@@ -516,14 +517,15 @@ val jsJodaTz = JsJodaTimeZoneModule
516517

517518
Wasm/JS uses the same time zone support as JS, so almost the same instructions apply.
518519

519-
In your Gradle build script, add the following dependency:
520+
In your Gradle build script, add the following dependency
521+
(replace X.X.X below with the latest version [from here](https://www.npmjs.com/package/@js-joda/timezone?activeTab=versions)):
520522

521523
```kotlin
522524
kotlin {
523525
sourceSets {
524526
val wasmJsMain by getting {
525527
dependencies {
526-
implementation(npm("@js-joda/timezone", "2.3.0"))
528+
implementation(npm("@js-joda/timezone", "X.X.X"))
527529
}
528530
}
529531
}

0 commit comments

Comments
 (0)