Skip to content

Commit d9fcdb9

Browse files
committed
fixup
1 parent f1c1fae commit d9fcdb9

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

core/common/src/LocalDate.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ public fun String.toLocalDate(): LocalDate = LocalDate.parse(this)
315315
* @sample kotlinx.datetime.test.samples.LocalDateSamples.atTimeInline
316316
*/
317317
public fun LocalDate.atTime(hour: Int, minute: Int, second: Int = 0, nanosecond: Int = 0): LocalDateTime =
318-
LocalDateTime(year, month.number, day, hour, minute, second, nanosecond)
318+
LocalDateTime(year, month, day, hour, minute, second, nanosecond)
319319

320320
/**
321321
* Combines this date's components with the specified [LocalTime] components into a [LocalDateTime] value.

core/common/src/format/DateTimeComponents.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ public class DateTimeComponents internal constructor(internal val contents: Date
297297
public var day: Int? by TwoDigitNumber(contents.date::day)
298298

299299
/** @suppress */
300-
@Deprecated("Use 'day' instead", ReplaceWith("day"))
300+
@Deprecated("Use 'day' instead")
301301
public var dayOfMonth: Int? by TwoDigitNumber(contents.date::day)
302302

303303
/**

core/commonJs/src/LocalDate.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public actual class LocalDate internal constructor(internal val value: jtLocalDa
6969
@Deprecated("Use the 'month' property instead", ReplaceWith("this.month.number"), level = DeprecationLevel.WARNING)
7070
public actual val monthNumber: Int get() = value.monthValue()
7171
public actual val month: Month get() = value.month().toMonth()
72-
@Deprecated("Use the 'day' property instead", ReplaceWith("this.day"), level = DeprecationLevel.WARNING)
72+
@Deprecated("Use the 'day' property instead", level = DeprecationLevel.WARNING)
7373
public actual val dayOfMonth: Int get() = value.dayOfMonth()
7474
public actual val day: Int get() = value.dayOfMonth()
7575
public actual val dayOfWeek: DayOfWeek get() = value.dayOfWeek().toDayOfWeek()

core/commonJs/src/LocalDateTime.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public actual class LocalDateTime internal constructor(internal val value: jtLoc
3333
@Deprecated("Use the 'month' property instead", ReplaceWith("this.month.number"), level = DeprecationLevel.WARNING)
3434
public actual val monthNumber: Int get() = value.monthValue()
3535
public actual val month: Month get() = value.month().toMonth()
36-
@Deprecated("Use the 'day' property instead", ReplaceWith("this.day"), level = DeprecationLevel.WARNING)
36+
@Deprecated("Use the 'day' property instead", level = DeprecationLevel.WARNING)
3737
public actual val dayOfMonth: Int get() = value.dayOfMonth()
3838
public actual val day: Int get() = value.dayOfMonth()
3939
public actual val dayOfWeek: DayOfWeek get() = value.dayOfWeek().toDayOfWeek()

core/commonKotlin/src/LocalDate.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public actual class LocalDate actual constructor(public actual val year: Int, mo
2828
private val _month: Int = month
2929
@Deprecated("Use the 'month' property instead", ReplaceWith("this.month.number"), level = DeprecationLevel.WARNING)
3030
public actual val monthNumber: Int get() = _month
31-
@Deprecated("Use the 'day' property instead", ReplaceWith("this.day"), level = DeprecationLevel.WARNING)
31+
@Deprecated("Use the 'day' property instead", level = DeprecationLevel.WARNING)
3232
public actual val dayOfMonth: Int get() = day
3333

3434
init {

core/commonKotlin/src/LocalDateTime.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public actual constructor(public actual val date: LocalDate, public actual val t
4545
@Deprecated("Use the 'month' property instead", ReplaceWith("this.month.number"), level = DeprecationLevel.WARNING)
4646
public actual val monthNumber: Int get() = date.month.number
4747
public actual val month: Month get() = date.month
48-
@Deprecated("Use the 'day' property instead", ReplaceWith("this.day"), level = DeprecationLevel.WARNING)
48+
@Deprecated("Use the 'day' property instead", level = DeprecationLevel.WARNING)
4949
public actual val dayOfMonth: Int get() = date.day
5050
public actual val day: Int get() = date.day
5151
public actual val dayOfWeek: DayOfWeek get() = date.dayOfWeek

core/jvm/src/LocalDate.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public actual class LocalDate internal constructor(internal val value: jtLocalDa
6464
@Deprecated("Use the 'month' property instead", ReplaceWith("this.month.number"), level = DeprecationLevel.WARNING)
6565
public actual val monthNumber: Int get() = value.monthValue
6666
public actual val month: Month get() = value.month
67-
@Deprecated("Use the 'day' property instead", ReplaceWith("this.day"), level = DeprecationLevel.WARNING)
67+
@Deprecated("Use the 'day' property instead", level = DeprecationLevel.WARNING)
6868
public actual val dayOfMonth: Int get() = value.dayOfMonth
6969
public actual val day: Int get() = value.dayOfMonth
7070
public actual val dayOfWeek: DayOfWeek get() = value.dayOfWeek

core/jvm/src/LocalDateTime.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public actual class LocalDateTime internal constructor(internal val value: jtLoc
3636
@Deprecated("Use the 'month' property instead", ReplaceWith("this.month.number"), level = DeprecationLevel.WARNING)
3737
public actual val monthNumber: Int get() = value.monthValue
3838
public actual val month: Month get() = value.month
39-
@Deprecated("Use the 'day' property instead", ReplaceWith("this.day"), level = DeprecationLevel.WARNING)
39+
@Deprecated("Use the 'day' property instead", level = DeprecationLevel.WARNING)
4040
public actual val dayOfMonth: Int get() = value.dayOfMonth
4141
public actual val day: Int get() = value.dayOfMonth
4242
public actual val dayOfWeek: DayOfWeek get() = value.dayOfWeek

0 commit comments

Comments
 (0)