Compare commits

...

9 Commits

Author SHA1 Message Date
211b57cdf6 update kotlinx serialization 2023-09-18 14:24:59 +06:00
6b4bc42f3d update dependencies 2023-09-18 14:20:21 +06:00
c406f883d2 potential fix of #65 2023-09-18 14:15:46 +06:00
93b56c0861 start 2.2.1 2023-09-18 14:12:49 +06:00
801c27c7f8 Merge pull request #71 from InsanusMokrassar/2.2.0
2.2.0
2023-08-09 13:03:04 +06:00
cbfbdc1b33 files replacements 2023-08-09 13:01:20 +06:00
715d414f51 update dependencies 2023-08-09 12:35:13 +06:00
2ecd8c4292 start 2.2.0 2023-08-09 12:24:41 +06:00
1be8d947f7 Merge pull request #67 from InsanusMokrassar/2.1.2
2.1.2
2023-07-05 20:07:15 +06:00
39 changed files with 30 additions and 9 deletions

View File

@@ -1,5 +1,20 @@
# Changelog
## 2.2.1
* Potential fix of [#65](https://github.com/InsanusMokrassar/krontab/issues/65)
* Versions
* `Kotlin`: `1.9.20-Beta`
* `Klock`: `4.0.10`
* `Serialization`: `1.6.0`
## 2.2.0
* Versions
* `Kotlin`: `1.9.0`
* `Coroutines`: `1.7.3`
* `Klock`: `4.0.9`
## 2.1.2
* Versions

View File

@@ -97,7 +97,7 @@ kotlin {
implementation kotlin('test-js')
}
}
androidTest {
androidUnitTest {
dependencies {
implementation kotlin('test-junit')
}

View File

@@ -9,13 +9,13 @@ android.useAndroidX=true
android.enableJetifier=false
kotlin_version=1.8.22
kotlin_coroutines_version=1.7.2
kotlin_serialization_version=1.5.1
kotlin_version=1.9.20-Beta
kotlin_coroutines_version=1.7.3
kotlin_serialization_version=1.6.0
dokka_version=1.8.20
dokka_version=1.9.0
klockVersion=4.0.3
klockVersion=4.0.10
## Github reease
@@ -36,5 +36,5 @@ androidx_work_version=2.8.1
## Common
version=2.1.2
android_code_version=29
version=2.2.1
android_code_version=31

View File

@@ -108,13 +108,19 @@ internal fun NearDateTimeCalculatorDays(
} else {
dateTime
})
dateTime.copy(
val newDateTime = dateTime.copy(
dayOfMonth = min(dateTime.month.days(dateTime.year), newOne.toInt() + 1), // index1
hour = 0,
minute = 0,
second = 0,
milliseconds = 0
)
// If day of month has not been changed, use old dateTime due to no changes required
if (newDateTime.dayOfMonth == dateTime.dayOfMonth) {
dateTime
} else {
newDateTime
}
}
)