mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2024-11-23 02:28:52 +00:00
fix of next with DateTimeTz
This commit is contained in:
parent
5311e651f4
commit
93246cada7
@ -22,7 +22,7 @@ interface KronScheduler {
|
|||||||
suspend fun next(relatively: DateTime = DateTime.now()): DateTime?
|
suspend fun next(relatively: DateTime = DateTime.now()): DateTime?
|
||||||
|
|
||||||
suspend fun next(relatively: DateTimeTz): DateTimeTz? {
|
suspend fun next(relatively: DateTimeTz): DateTimeTz? {
|
||||||
return next(relatively.utc) ?.toOffset(relatively.offset)
|
return next(relatively.local) ?.toOffsetUnadjusted(relatively.offset)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user