Skip to content

With Kotlinx datetime 0.7.0, there is a crash due to missing kotlinx/datetime/Clock$System #36

Closed
@opatry

Description

@opatry

I can't update to Kotlinx Datetime 0.7.0 because of a runtime crash when running KtorMonitor which relies on kotlinx.datetime.Clock which doesn't exist anymore.

See changelog for 0.7.0: https://github.com/Kotlin/kotlinx-datetime/releases/tag/v0.7.0

Remove kotlinx.datetime.Instant and kotlinx.datetime.Clock in favor of kotlin.time.Instant (Kotlin/kotlinx-datetime#506). See https://github.com/Kotlin/kotlinx-datetime?tab=readme-ov-file#deprecation-of-instant for a description of what to do if this causes problems.

Also, Ktor 3.2.1 was updated to take this into account as well: https://github.com/ktorio/ktor/releases/tag/3.2.1

Replace kotlinx.datetime APIs with kotlin.time (KTOR-8635)


Edit Oh, my bad, it appears it's already done in 7f36aa3

Do you plan to release this quickly or are some other changes on the road? Maybe you were waiting for Ktor 3.2.1?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions