mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2026-05-22 22:47:16 +00:00
Compare commits
2 Commits
2.2.1
...
3a06430ab5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3a06430ab5 | ||
|
|
9e71335364 |
@@ -1,13 +1,5 @@
|
|||||||
# Changelog
|
# 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
|
## 2.2.0
|
||||||
|
|
||||||
* Versions
|
* Versions
|
||||||
|
|||||||
@@ -9,13 +9,13 @@ android.useAndroidX=true
|
|||||||
android.enableJetifier=false
|
android.enableJetifier=false
|
||||||
|
|
||||||
|
|
||||||
kotlin_version=1.9.20-Beta
|
kotlin_version=1.9.0
|
||||||
kotlin_coroutines_version=1.7.3
|
kotlin_coroutines_version=1.7.3
|
||||||
kotlin_serialization_version=1.6.0
|
kotlin_serialization_version=1.5.1
|
||||||
|
|
||||||
dokka_version=1.9.0
|
dokka_version=1.8.20
|
||||||
|
|
||||||
klockVersion=4.0.10
|
klockVersion=4.0.9
|
||||||
|
|
||||||
## Github reease
|
## Github reease
|
||||||
|
|
||||||
@@ -36,5 +36,5 @@ androidx_work_version=2.8.1
|
|||||||
|
|
||||||
## Common
|
## Common
|
||||||
|
|
||||||
version=2.2.1
|
version=2.2.0
|
||||||
android_code_version=31
|
android_code_version=30
|
||||||
|
|||||||
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
|
|||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.2-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
|
||||||
|
|||||||
@@ -108,19 +108,13 @@ internal fun NearDateTimeCalculatorDays(
|
|||||||
} else {
|
} else {
|
||||||
dateTime
|
dateTime
|
||||||
})
|
})
|
||||||
val newDateTime = dateTime.copy(
|
dateTime.copy(
|
||||||
dayOfMonth = min(dateTime.month.days(dateTime.year), newOne.toInt() + 1), // index1
|
dayOfMonth = min(dateTime.month.days(dateTime.year), newOne.toInt() + 1), // index1
|
||||||
hour = 0,
|
hour = 0,
|
||||||
minute = 0,
|
minute = 0,
|
||||||
second = 0,
|
second = 0,
|
||||||
milliseconds = 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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user