Repository navigation
UI: Show duration chart tooltips in the selected timezone - #72024
Merged
Merged
Conversation
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
1 of 2 tasks
rjgoyln
marked this pull request as ready for review
August 26, 2026 09:27
rjgoyln
requested review from
bbovenzi,
choo121600,
guan404ming,
pierrejeambrun,
ryanahamilton,
shubhamraj-git and
vatsrahul1001
as code owners
August 26, 2026 09:27
bbovenzi
approved these changes
Aug 31, 2026
Contributor
Backport successfully created: v3-3-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
bbovenzi
pushed a commit
that referenced
this pull request
Aug 31, 2026
…#72024) (#72339) 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. (cherry picked from commit f7a2f4e) Related: #72018 Co-authored-by: rjgoyln <151457491+rjgoyln@users.noreply.github.com>
vatsrahul1001
pushed a commit
that referenced
this pull request
Sep 7, 2026
…#72024) (#72339) 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. (cherry picked from commit f7a2f4e) Related: #72018 Co-authored-by: rjgoyln <151457491+rjgoyln@users.noreply.github.com>
imrichardwu
pushed a commit
to imrichardwu/airflow
that referenced
this pull request
Sep 11, 2026
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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. With the browser in
Europe/WarsawandAsia/Tokyoselected, a run at2026-08-20T08:30:00Zis labeled 17:30:00 on the axis and 10:30:00 in the tooltip, so the tooltip no longer identifies the bar under the cursor. Labels now use the sameformatDatecall with the selected timezone that the axis already did.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?
Generated-by: Claude Code (Opus 5) following the guidelines