Skip to content

Commit 90d53d8

Browse files
committed
Use day instead of the deprecated dayOfMonth.
1 parent 5588498 commit 90d53d8

File tree

1 file changed

+1
-1
lines changed
  • kmp/pretty-time/src/commonMain/kotlin/io/github/reactivecircus/kstreamlined/kmp/prettytime

1 file changed

+1
-1
lines changed

kmp/pretty-time/src/commonMain/kotlin/io/github/reactivecircus/kstreamlined/kmp/prettytime/prettyTime.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public fun Instant.toFormattedTime(
5353
return toLocalDateTime(timeZone).let { localDateTime ->
5454
buildString {
5555
append(
56-
localDateTime.dayOfMonth.toString().padStart(2, '0')
56+
localDateTime.day.toString().padStart(2, '0')
5757
)
5858
append(" ")
5959
append(

0 commit comments

Comments
 (0)