Skip to content

Commit 681043d

Browse files
Update NearDateTimeCalculator.kt
1 parent f63ed1a commit 681043d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commonMain/kotlin/dev/inmo/krontab/internal/NearDateTimeCalculator.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ internal fun NearDateTimeCalculatorDays(
101101
times: Array<Byte>
102102
) = CommonNearDateTimeCalculator(
103103
times,
104-
{ (it.dayOfMonth - 1).toByte() },
104+
{ (it.dayOfMonth - 1).toByte() }, // index1, so, decrease
105105
{ dateTime, newOne ->
106106
val dateTime = (if (newOne < dateTime.dayOfMonth) {
107107
dateTime.plus(1.months)

0 commit comments

Comments
 (0)