Skip to content

Dashboard: the chain builder schedules in the scheduler time zone - #304

Merged
msx752 merged 2 commits into
developfrom
fix/dashboard-chain-builder-scheduler-zone
Nov 26, 2026
Merged

msx752 merged 2 commits into
developfrom
fix/dashboard-chain-builder-scheduler-zone

Conversation

@msx752

@msx752 msx752 commented Nov 26, 2026

Copy link
Copy Markdown
Owner

The chain builder read the typed date and time in the browser's time zone and sent it as UTC, without timeZoneId. The Add dialog sends the same time without a zone and with timeZoneId (the scheduler's zone), and the server reads the whole chain in that zone. With a browser in another zone than the scheduler, a chain typed for 23:00 ran at another hour: from a browser in New York, for a scheduler in Istanbul, 23:00 on 1 December was stored as 07:00 on 2 December (scheduler time), and the table showed it so.

Change

  • The chain builder sends the wall-clock time ("2026-12-01T23:00:00") and timeZoneId = the scheduler's zone, as the Add dialog does. The server already reads every node of a chain in that zone (ReadChainTimesInTimeZone).
  • The conversion is in utilities/schedulerTime.ts (toWallClockText, a Date only), with tests.

What does not change

  • The server, the API, chains that run immediately or children without a time of their own.

Testing

  • schedulerTime.test.ts, also run with TZ=America/New_York and TZ=Asia/Tokyo. A mutant that converts with the browser's zone again (setHours + toISOString) fails the full dashboard suite under TZ=America/New_York.
  • In a browser in America/New_York (sample app, scheduler Europe/Istanbul), a chain typed for 1 December 2026 23:00:00: before, stored 2026-12-02T04:00:00Z; after, 2026-12-01T20:00:00Z (23:00 in Istanbul).
  • vue-tsc --build clean, no new lint messages, every .NET test project passes, the scenario solution builds.
  • An independent review of the diff found no issue; its one suggestion (no string input) is in the second commit.

The chain builder read the typed date and time in the browser time zone
and sent it as UTC, without timeZoneId. The Add dialog sends the same
time without a zone and with timeZoneId, so the server reads it in the
scheduler zone. With a browser in another zone than the scheduler, a
chain typed for 23:00 ran at another hour (from New York for an
Istanbul scheduler: 07:00 the next day).

The chain builder now sends the wall-clock time and the scheduler zone,
as the Add dialog does; the server already reads a whole chain in that
zone. The conversion is in utilities/schedulerTime.ts, with tests.
@msx752
msx752 merged commit 3f14652 into develop Nov 26, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant