mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2026-11-04 02:23:02 +00:00
Update NearDateTimeCalculator.kt
This commit is contained in:
1 parent
f63ed1a873
commit
681043db5a
1 file changed
+1
-1
@@ -101,7 +101,7 @@ internal fun NearDateTimeCalculatorDays(
|
||||
times: Array<Byte>
|
||||
) = CommonNearDateTimeCalculator(
|
||||
times,
|
||||
{ (it.dayOfMonth - 1).toByte() },
|
||||
{ (it.dayOfMonth - 1).toByte() }, // index1, so, decrease
|
||||
{ dateTime, newOne ->
|
||||
val dateTime = (if (newOne < dateTime.dayOfMonth) {
|
||||
dateTime.plus(1.months)
|
||||
|
||||
Reference in new issue
Block a user