mirror of
https://github.com/InsanusMokrassar/PlaguPoster.git
synced 2025-12-13 16:35:38 +00:00
fixes and fills
This commit is contained in:
@@ -17,8 +17,7 @@ class TimeConfig(
|
||||
@Transient
|
||||
val range = from .. to
|
||||
|
||||
val isActive: Boolean
|
||||
get() = DateTime.now().time in range
|
||||
fun isActive(now: Time): Boolean = now in range
|
||||
|
||||
|
||||
object TimeSerializer : KSerializer<Time> {
|
||||
|
||||
Reference in New Issue
Block a user