mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2025-10-18 05:00:12 +00:00
fix of next with DateTimeTz
This commit is contained in:
@@ -22,7 +22,7 @@ interface KronScheduler {
|
||||
suspend fun next(relatively: DateTime = DateTime.now()): DateTime?
|
||||
|
||||
suspend fun next(relatively: DateTimeTz): DateTimeTz? {
|
||||
return next(relatively.utc) ?.toOffset(relatively.offset)
|
||||
return next(relatively.local) ?.toOffsetUnadjusted(relatively.offset)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user