GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Timezone switcher between Local and UTC time in heatmaps by jerrinot · Pull Request #1530 · async-profiler/async-profiler

Conversation

@jerrinot

@jerrinot jerrinot commented Oct 10, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Description

Timestamps in heatmaps can be rendered in UTC. The state is stored in a local storage.

Related issues

I am not aware of an existing issue.

Motivation and context

Before the change, heatmaps would always use the local timezone from a browser. I find it confusing. I prefer UTC when analyzing logs.

How has this been tested?

On my local, in Firefox@Linux.


asprof_utc.webm

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Disclosure: I used an AI assistant to develop this patch.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jerrinot
timezone toggle to switch between Local and UTC time in heatmap
0af5323
@jerrinot jerrinot changed the title timezone toggle to switch between Local and UTC time in heatmap Timezone toggle to switch between Local and UTC time in heatmap Oct 10, 2025
@jerrinot jerrinot changed the title Timezone toggle to switch between Local and UTC time in heatmap Timezone toggle to switch between Local and UTC time in heatmaps Oct 10, 2025
@apangin

apangin commented Oct 14, 2025

Copy link
Copy Markdown
Collaborator

Thank you for your proposal.

I like the idea of a switch between UTC and local time, but I think it could be slightly better from the UI perspective.
Toggle buttons are always confusing: it's not obvious whether they show the current state or the state to switch to. It would be clearer if the current timezone is shown directly on the time axis. No need for a separate button: the time axis itself can serve as a switch, similarly to how the zoom label acts as a switch for changing zoom. That way, the interface stays minimal and intuitive - consistent with the rest of the tool.

Regarding GenAI assistants, I'd recommend to minimize usage of them in order to stay compliant with the project license and to simplify reviewers' work. For instance, I found that the clock icon in your PR literally replicates an MIT-licensed SVG image. Unfortunately, I don't have resources to verify origin of each contribution, so the general recommendation is to submit only your original work or third-party work explicitly marked as CC0 or equivalent.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jerrinot

jerrinot commented Oct 14, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

Thank you for your review, appreciate it.

I agree toggles may be ambiguous; I recall there was some other SW where I was never sure about the same thing.

I'll change to make the time axis clickable. I like the consistency with the Zoom feature. There is a slight issue with feature discoverability, but that's something to be possibly addressed later: for both zoom and timezones.

Apologies for the situation with the icon. I used Claude Code as a starting point (I sucks at HTML) and then changed most of its code anyway since it went bananas with timezone conversions. but I failed to realize the generated icon could possibly be licensed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jerrinot
ux: change timezone by clicking at the timeaxis
dde2a94
@jerrinot jerrinot changed the title Timezone toggle to switch between Local and UTC time in heatmaps Timezone switcher between Local and UTC time in heatmaps Oct 14, 2025
@jerrinot
Merge branch 'master' into heatmap_UTC
286d2a6
@apangin

apangin commented Nov 2, 2025

Copy link
Copy Markdown
Collaborator

Thank you for working on the issue.
Upon review, I noticed that the text on the time axis is unreadable in some timezones:
timezone
Then, click on the timeline changes current range selection, that I didn't expect to happen.
It would be also better if cursor changed when hovering over the timeline, indicating that it is clickable.

jerrinot reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jerrinot added 2 commits November 19, 2025 21:03
@jerrinot
Merge remote-tracking branch 'origin/master' into heatmap_UTC
180a3e7
@jerrinot
1. show timezone only when explicitly selected UTC
7e7861b
2. do not change selection on switching timezones
3. change mouse cursor when hovering over time axis
@jerrinot

jerrinot commented Nov 19, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

@apangin Thanks for the feedback! Changing the mouse cursor on hover and not cancelling selecting on the timezone switch was easy. I was unsure how to solve the issue with long time zones. I decided not to render a timezone at all when it's local (=default, the same behaviour as now) and only render it when it's UTC (=non-default, explicitly selected). Let me know what you think.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@apangin

apangin commented Nov 20, 2025

Copy link
Copy Markdown
Collaborator

I decided not to render a timezone at all when it's local (=default, the same behaviour as now) and only render it when it's UTC (=non-default, explicitly selected).

That is smart. I like the idea :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@apangin
Minor coding style changes
4af087a
@apangin
apangin merged commit 3bb1e72 into async-profiler:master Nov 20, 2025
@apangin

apangin commented Nov 20, 2025

Copy link
Copy Markdown
Collaborator

Works like a charm now.
Thank you for the contribution.

jerrinot reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jerrinot
jerrinot deleted the heatmap_UTC branch November 20, 2025 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@jerrinot @apangin
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.