mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-11 18:33:53 +00:00
events with 0 duration dose not contribute to next day calculation (#1099)
This commit is contained in:
committed by
GitHub
parent
1b448835cd
commit
975356f4f4
@@ -8,6 +8,6 @@
|
||||
* 09:00 - 10:00
|
||||
* 09:30 - 10:30
|
||||
*/
|
||||
export function checkIsNextDay(previousStart: number, timeStart: number): boolean {
|
||||
return timeStart <= previousStart;
|
||||
export function checkIsNextDay(previousStart: number, timeStart: number, previousDuration?: number): boolean {
|
||||
return previousDuration === 0 ? false : timeStart <= previousStart;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user