fix of next with DateTimeTz

This commit is contained in:
InsanusMokrassar 2021-03-29 22:29:10 +06:00
parent 5311e651f4
commit 93246cada7

View File

@ -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)
} }
} }