Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ kotlin-serialization-core = { group = "org.jetbrains.kotlinx", name = "kotlinx-s
kotlin-serialization-json = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "kotlinSerialization" }
kotlin-serialization-yaml = { group = "com.charleskorn.kaml", name = "kaml", version = "0.82.0" }
kotlin-logging = { group = "io.github.microutils", name = "kotlin-logging", version = "3.0.5" }
kotlin-datetime = { group = "org.jetbrains.kotlinx", name = "kotlinx-datetime", version = "0.6.2" }
kotlin-datetime = { group = "org.jetbrains.kotlinx", name = "kotlinx-datetime", version = "0.7.0-0.6.x-compat" }
kotlin-html = { group = "org.jetbrains.kotlinx", name = "kotlinx-html", version = "0.12.0" }
kotlin-collections-immutable = { group = "org.jetbrains.kotlinx", name = "kotlinx-collections-immutable", version = "0.4.0" }
kotlinJs = { module = "org.jetbrains.kotlin-wrappers:kotlin-js", version = "2025.6.10" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import kotlinx.datetime.Clock
import kotlinx.datetime.Instant
import kotlinx.datetime.LocalDateTime
import kotlinx.datetime.TimeZone
import kotlinx.datetime.toDeprecatedInstant
import kotlinx.datetime.toInstant
import org.modelix.datastructures.model.IGenericModelTree
import org.modelix.datastructures.model.asLegacyTree
Expand Down Expand Up @@ -44,6 +45,7 @@ import org.modelix.streams.getBlocking
import org.modelix.streams.plus
import org.modelix.streams.query
import kotlin.jvm.JvmName
import kotlin.time.ExperimentalTime

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

Expand Down Expand Up @@ -78,7 +80,8 @@ class CLVersion(val obj: Object<CPVersion>) : IVersion {
return Instant.fromEpochSeconds(dateTimeStr.toLong())
} catch (ex: Exception) {}
try {
return LocalDateTime.parse(dateTimeStr).toInstant(TimeZone.currentSystemDefault())
@OptIn(ExperimentalTime::class)
return LocalDateTime.parse(dateTimeStr).toInstant(TimeZone.currentSystemDefault()).toDeprecatedInstant()
} catch (ex: Exception) {}
return null
}
Expand Down
Loading