Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix timezone on stats modal #611

Merged
merged 2 commits into from
May 29, 2024

Conversation

vitimm144
Copy link
Contributor

Issue number of the reported bug or feature request: #591

Describe your changes
Used vanilla javascritpt to format the datetime on stats table

@vitimm144 vitimm144 force-pushed the fix-timezone-on-stats-modal branch from 48d9238 to 5043bef Compare May 21, 2024 16:29
Copy link
Contributor

@sarahmonod sarahmonod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks a lot for your contribution Victor! Very nicely done.

@sarahmonod sarahmonod linked an issue May 21, 2024 that may be closed by this pull request
1 task
@godlygeek godlygeek requested a review from sarahmonod May 22, 2024 21:46
@godlygeek godlygeek force-pushed the fix-timezone-on-stats-modal branch 2 times, most recently from 3a8c075 to e41f588 Compare May 26, 2024 18:20
Copy link
Contributor

@godlygeek godlygeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was only half the fix, but I've pushed a separate commit with the other half. In addition to having making the HTML reporters localize the date/time when the page is loaded, we also need to embed the original time zone in the report. Previously we were embedding a non-localized time stamp, which didn't contain enough information to properly localize it to a different time zone.

After adding that commit (and a news entry), this looks good to me!

Thank you for the contribution!

@godlygeek godlygeek force-pushed the fix-timezone-on-stats-modal branch from e41f588 to 8702f42 Compare May 26, 2024 18:26
vitimm144 and others added 2 commits May 29, 2024 17:20
Signed-off-by: Victor dos Reis Avelino da Silva <[email protected]>
Prior to this we were including a naive datetime, which did not include
enough information to allow it to be localized if a report was viewed on
a machine with a different time zone than the one it was generated on.

Signed-off-by: Matt Wozniski <[email protected]>
@godlygeek godlygeek force-pushed the fix-timezone-on-stats-modal branch from 8702f42 to e48dc2b Compare May 29, 2024 21:21
@godlygeek godlygeek enabled auto-merge (rebase) May 29, 2024 21:21
@godlygeek godlygeek merged commit 2f02a03 into bloomberg:main May 29, 2024
18 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.

Flame graph time axis offset (perhaps due to timezone)
3 participants