[Dashboard] Fix dashboard for daylight savings#52755
Merged
matthewdeng merged 4 commits intoray-project:masterfrom May 16, 2025
Merged
[Dashboard] Fix dashboard for daylight savings#52755matthewdeng merged 4 commits intoray-project:masterfrom
matthewdeng merged 4 commits intoray-project:masterfrom
Conversation
Did not get traction with the holistic fix for daylight savings as there was pushback on usage of tzlocal in python. So, splitting out the fix on the UI side which is perhaps less controversial. On the UI side, `timezone.ts` is showing GMT offsets not reflective of daylight savings time. Updating to dynamically pull the offset from `Intl.DateTimeFormat`. Note not doing any dynamic evaluation so for browser windows open during the switch, it will not update. Signed-off-by: Brendan Miller <6900229+bhmiller@users.noreply.github.com>
bhmiller
commented
May 2, 2025
a219e89 to
5b01e1f
Compare
Node.js version used (14) does not seem to implement longOffset. Use shortOffset instead, and massage the output to be the same as longOffset. Signed-off-by: Brendan Miller <6900229+bhmiller@users.noreply.github.com>
8 tasks
alanwguo
reviewed
May 6, 2025
Contributor
|
Thanks for the fix! |
longOffset vs. shortOffset doesn't matter. It's just for UI purposes, as formatUtils formatTimeZone takes the time zone names to derive the display, not offset. Also fixed match bug where for GMT+0, Intl.DateTimeFormat only prints "GMT", not e.g. "GMT+0". Signed-off-by: Brendan Miller <6900229+bhmiller@users.noreply.github.com>
alanwguo
approved these changes
May 14, 2025
Contributor
|
Thanks for the contribution, merging! |
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.
Did not get traction with the holistic fix for daylight savings as there was pushback on usage of tzlocal in python. So, splitting out the fix on the UI side which is perhaps less controversial.
On the UI side,
timezone.tsis showing GMT offsets not reflective of daylight savings time. Updating to dynamically pull the offset fromIntl.DateTimeFormat. Note not doing any dynamic evaluation so for browser windows open during the switch, it will not update.Why are these changes needed?
See #51310
Related issue number
Closes #51310
Checks
git commit -s) in this PR.scripts/format.shto lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/under thecorresponding
.rstfile.My tests are just running the typescript code through https://www.typescriptlang.org/play