mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 06:59:09 +00:00
fix: initialise group time
This commit is contained in:
committed by
Carlos Valente
parent
5716fc31cf
commit
d04f958c11
@@ -640,6 +640,10 @@ export function roll(
|
|||||||
runtimeState.timer.startedAt = runtimeState.clock;
|
runtimeState.timer.startedAt = runtimeState.clock;
|
||||||
runtimeState.timer.secondaryTimer = null;
|
runtimeState.timer.secondaryTimer = null;
|
||||||
|
|
||||||
|
if (runtimeState.groupNow !== null && runtimeState.rundown.actualGroupStart === null) {
|
||||||
|
runtimeState.rundown.actualGroupStart = runtimeState.clock;
|
||||||
|
}
|
||||||
|
|
||||||
if (runtimeState.rundown.actualStart === null) {
|
if (runtimeState.rundown.actualStart === null) {
|
||||||
runtimeState.rundown.actualStart = runtimeState.clock;
|
runtimeState.rundown.actualStart = runtimeState.clock;
|
||||||
runtimeState._startDayOffset = 0;
|
runtimeState._startDayOffset = 0;
|
||||||
@@ -719,6 +723,11 @@ export function roll(
|
|||||||
|
|
||||||
// update runtime
|
// update runtime
|
||||||
runtimeState.rundown.actualStart = runtimeState.clock;
|
runtimeState.rundown.actualStart = runtimeState.clock;
|
||||||
|
|
||||||
|
if (runtimeState.groupNow !== null && runtimeState.rundown.actualGroupStart === null) {
|
||||||
|
runtimeState.rundown.actualGroupStart = runtimeState.clock;
|
||||||
|
}
|
||||||
|
|
||||||
// update metadata
|
// update metadata
|
||||||
runtimeState._startDayOffset = 0;
|
runtimeState._startDayOffset = 0;
|
||||||
runtimeState._startEpoch = epoch;
|
runtimeState._startEpoch = epoch;
|
||||||
|
|||||||
Reference in New Issue
Block a user