Skip to content

Commit 16b521f

Browse files
dependabot[bot]slisson
authored andcommitted
build(deps): bump org.jetbrains.kotlinx:kotlinx-datetime
Bumps [org.jetbrains.kotlinx:kotlinx-datetime](https://github.com/Kotlin/kotlinx-datetime) from 0.6.2 to 0.7.0-0.6.x-compat. - [Release notes](https://github.com/Kotlin/kotlinx-datetime/releases) - [Changelog](https://github.com/Kotlin/kotlinx-datetime/blob/master/CHANGELOG.md) - [Commits](https://github.com/Kotlin/kotlinx-datetime/commits) --- updated-dependencies: - dependency-name: org.jetbrains.kotlinx:kotlinx-datetime dependency-version: 0.7.0-0.6.x-compat dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
1 parent 5b7e208 commit 16b521f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ kotlin-serialization-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-s
5252
kotlin-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinSerialization" }
5353
kotlin-serialization-yaml = { group = "com.charleskorn.kaml", name = "kaml", version = "0.82.0" }
5454
kotlin-logging = { group = "io.github.microutils", name = "kotlin-logging", version = "3.0.5" }
55-
kotlin-datetime = { group = "org.jetbrains.kotlinx", name = "kotlinx-datetime", version = "0.6.2" }
55+
kotlin-datetime = { group = "org.jetbrains.kotlinx", name = "kotlinx-datetime", version = "0.7.0-0.6.x-compat" }
5656
kotlin-html = { group = "org.jetbrains.kotlinx", name = "kotlinx-html", version = "0.12.0" }
5757
kotlin-collections-immutable = { group = "org.jetbrains.kotlinx", name = "kotlinx-collections-immutable", version = "0.4.0" }
5858
kotlinJs = { module = "org.jetbrains.kotlin-wrappers:kotlin-js", version = "2025.6.10" }

model-datastructure/src/commonMain/kotlin/org/modelix/model/lazy/CLVersion.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import kotlinx.datetime.Clock
44
import kotlinx.datetime.Instant
55
import kotlinx.datetime.LocalDateTime
66
import kotlinx.datetime.TimeZone
7+
import kotlinx.datetime.toDeprecatedInstant
78
import kotlinx.datetime.toInstant
89
import org.modelix.datastructures.model.IGenericModelTree
910
import org.modelix.datastructures.model.asLegacyTree
@@ -44,6 +45,7 @@ import org.modelix.streams.getBlocking
4445
import org.modelix.streams.plus
4546
import org.modelix.streams.query
4647
import kotlin.jvm.JvmName
48+
import kotlin.time.ExperimentalTime
4749

4850
class CLVersion(val obj: Object<CPVersion>) : IVersion {
4951

@@ -78,7 +80,8 @@ class CLVersion(val obj: Object<CPVersion>) : IVersion {
7880
return Instant.fromEpochSeconds(dateTimeStr.toLong())
7981
} catch (ex: Exception) {}
8082
try {
81-
return LocalDateTime.parse(dateTimeStr).toInstant(TimeZone.currentSystemDefault())
83+
@OptIn(ExperimentalTime::class)
84+
return LocalDateTime.parse(dateTimeStr).toInstant(TimeZone.currentSystemDefault()).toDeprecatedInstant()
8285
} catch (ex: Exception) {}
8386
return null
8487
}

0 commit comments

Comments
 (0)