From e25bfb7291152894fe4c88e0ff501869b8169a21 Mon Sep 17 00:00:00 2001 From: David Tsay Date: Wed, 26 Mar 2025 15:52:10 -0700 Subject: [PATCH] don't override time conductor defaults --- src/plugins/timeConductor/plugin.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/plugins/timeConductor/plugin.js b/src/plugins/timeConductor/plugin.js index a8a9acbd78..a756d9daca 100644 --- a/src/plugins/timeConductor/plugin.js +++ b/src/plugins/timeConductor/plugin.js @@ -140,17 +140,13 @@ export default function (config) { } } - openmct.time.setMode(defaultMode, defaultClock ? clockOffsets : defaultBounds); - openmct.time.setTimeSystem(defaults.timeSystem, defaultBounds); - //We are going to set the clockOffsets in fixed time mode since the conductor components down the line need these if (clockOffsets && defaultMode === FIXED_MODE_KEY) { openmct.time.setClockOffsets(clockOffsets); } - //We are going to set the fixed time bounds in realtime time mode since the conductor components down the line need these - if (defaultBounds && defaultMode === REALTIME_MODE_KEY) { - openmct.time.setBounds(clockOffsets); - } + + openmct.time.setMode(defaultMode, defaultClock ? clockOffsets : defaultBounds); + openmct.time.setTimeSystem(defaults.timeSystem, defaultBounds); openmct.on('start', function () { mountComponent(openmct, config);