Skip to content

Commit 8edf0a6

Browse files
committed
Remove the kotlinx-datetime dependency and update the comment
See commit 9cf28f1 for a failed attempt to try using kotlinx-datetime.
1 parent f357307 commit 8edf0a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frameworks/Kotlin/vertx-web-kotlinx/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ dependencies {
3131
implementation("org.jetbrains.kotlinx:kotlinx-io-core:0.8.2")
3232

3333
implementation("org.jetbrains.kotlinx:kotlinx-html:0.12.0")
34-
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.7.1") // TODO try using this in the code
34+
//implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.7.1")
3535
}
3636

3737
kotlin.jvmToolchain(25) // Kotlin doesn't support Java 25 yet

frameworks/Kotlin/vertx-web-kotlinx/src/main/kotlin/MainVerticle.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class MainVerticle(val hasDb: Boolean) : CoroutineVerticle(), CoroutineRouterSup
4040
lateinit var updateWordQuery: PreparedQuery<RowSet<Row>>
4141

4242
fun setCurrentDate() {
43-
// kotlinx-datetime doesn't support the format yet.
43+
// Don't know how to get kotlinx-datetime to work here properly. See commit 9cf28f15b6f1806b3ed75260adee8acd822cac91 for a failed attempt.
4444
//date = Clock.System.now().toString()
4545
date = DateTimeFormatter.RFC_1123_DATE_TIME.format(ZonedDateTime.now())
4646
}

0 commit comments

Comments
 (0)