From 2eaf33a25fa6ab97c13cb25b7cd6f1771f6cb864 Mon Sep 17 00:00:00 2001 From: dankito Date: Wed, 14 Aug 2024 13:40:29 +0200 Subject: [PATCH] Not using deprecated method anymore --- .../utils/multiplatform/extensions/LocalDateExtensions.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multiplatform-utils/src/commonMain/kotlin/net/dankito/utils/multiplatform/extensions/LocalDateExtensions.kt b/multiplatform-utils/src/commonMain/kotlin/net/dankito/utils/multiplatform/extensions/LocalDateExtensions.kt index 94646d3c..3d01a1fd 100644 --- a/multiplatform-utils/src/commonMain/kotlin/net/dankito/utils/multiplatform/extensions/LocalDateExtensions.kt +++ b/multiplatform-utils/src/commonMain/kotlin/net/dankito/utils/multiplatform/extensions/LocalDateExtensions.kt @@ -48,7 +48,7 @@ fun LocalDate.Companion.nowAt(timeZone: String): LocalDate { @JsName("nowAtForDate") fun LocalDate.Companion.nowAt(timeZone: TimeZone): LocalDate { - return Clock.System.todayAt(timeZone) + return Clock.System.todayIn(timeZone) }