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

Support switching timezones for formatting the timestamps in the logs. #207

Open
junhaoliao opened this issue Mar 10, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@junhaoliao
Copy link
Member

junhaoliao commented Mar 10, 2025

Request

As the title says.

This will help reduce cognitive load for log-viewer users who need to correlate log events with their local time or a specific reference time. Currently, log timestamps are displayed in a fixed timezone (e.g., system default), which may not align with the user's working context. This makes it difficult for users to quickly interpret and correlate log events with real-world occurrences, especially when working across different time zones.

Possible implementation

See the implementation at https://github.com/junhaoliao/yscope-log-viewer/tree/beta-release

Currently, the implementation includes:

  • A toggle that allows users to switch between UTC and "Local" time, where "Local" refers to the user's browser timezone.

We aim to enhance this functionality by:

  • Introducing a dropdown list that lets users select a specific timezone.
  • Providing helpful hints within the dropdown to indicate:
    • The user's browser timezone.
    • The logger's timezone, typically available as time-zone difference packets in CLP IR logs.

This improvement will offer greater flexibility and clarity for users working with logs across different time zones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant