Skip to content

UI: Show duration chart tooltips in the selected timezone - #72024

Draft
rjgoyln wants to merge 1 commit into
apache:mainfrom
rjgoyln:duration-chart-tooltip-timezone
Draft

UI: Show duration chart tooltips in the selected timezone#72024
rjgoyln wants to merge 1 commit into
apache:mainfrom
rjgoyln:duration-chart-tooltip-timezone

Conversation

@rjgoyln

@rjgoyln rjgoyln commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

The duration chart on the Dag and Task overview pages formatted its bar labels — which Chart.js reuses as the tooltip title — in the browser's local timezone, while the x-axis ticks and every other timestamp in the UI follow the timezone selected in the header. A user in Warsaw looking at a run scheduled for 08:30 UTC saw the axis say 08:30 and the tooltip say 10:30, so the tooltip no longer identified the bar under the cursor — misleading precisely when the chart is used to compare runs.

Labels now go through the same formatDate call with the selected timezone that the axis already used.

Tests

The component had no tests; this adds one asserting the label text across three timezones.

related: #72018


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Opus 5)

Generated-by: Claude Code (Opus 5) following the guidelines

The Last N Dag Runs / Task Instances chart formatted its bar labels in the
browser's local timezone while the x-axis ticks and the rest of the UI follow
the timezone picked in the header. Anyone whose machine sits in a different
timezone read a tooltip timestamp that did not identify the run they were
pointing at, which makes the chart misleading exactly when it is used to
compare runs.

Related: apache#72018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant