From 9faec3028ed2f2d55de51e1b60097cb8b2e22fb6 Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Sun, 1 Nov 2026 23:17:53 -0800 Subject: [PATCH] Show the world time on the HUD clock The HUD's UTC and collection readouts follow the world clock with the sky, so away from live they read the time the globe is drawn at. --- src/time/worldClock.js | 8 ++++---- src/time/worldClock.test.mjs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/time/worldClock.js b/src/time/worldClock.js index a875ddd2f..a9be9296d 100644 --- a/src/time/worldClock.js +++ b/src/time/worldClock.js @@ -337,12 +337,12 @@ export function createWorldClock({ /** * The page's world clock. Layers, the sky and a host all read this one. The - * sky, satellites (and the launched missions flying on their time) and - * launches have a time of their own and move with it; weather holds each - * product it shows. + * sky and the HUD's clock show the world time; satellites (and the launched + * missions flying on their time) and launches have a time of their own and + * move with it; weather holds each product it shows. */ export const worldClock = createWorldClock({ - follow: ['sky', 'satellites', 'rocket-launches'], + follow: ['sky', 'hud', 'satellites', 'rocket-launches'], }); /** The time layer `id` draws at on the page's clock. */ diff --git a/src/time/worldClock.test.mjs b/src/time/worldClock.test.mjs index c116ce27c..19bc8ba93 100644 --- a/src/time/worldClock.test.mjs +++ b/src/time/worldClock.test.mjs @@ -67,7 +67,7 @@ test('layers named at creation follow from the start', () => { test('the page clock moves the layers with a time of their own', async () => { const { worldClock } = await import('./worldClock.js'); - for (const id of ['sky', 'satellites', 'rocket-launches']) + for (const id of ['sky', 'hud', 'satellites', 'rocket-launches']) assert.equal(worldClock.follows(id), true, id); for (const id of ['flights', 'military', 'vessels', 'transit']) assert.equal(worldClock.follows(id), false, id);