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

Resolve the Local time zone in the UI #6459

Open
begelundmuller opened this issue Jan 21, 2025 · 0 comments
Open

Resolve the Local time zone in the UI #6459

begelundmuller opened this issue Jan 21, 2025 · 0 comments
Assignees

Comments

@begelundmuller
Copy link
Contributor

begelundmuller commented Jan 21, 2025

In the explore and canvas YAML, we allow a time zone called Local. However if you pass it directly to the metrics APIs, it always resolves to UTC because it's resolved using the server's time zone, not the browser's. Example YAML:

time_zones:
- UTC
- Local
- Europe/Copenhagen

To support the browser's local time, the UI should resolve Local to the IANA code of browser's local time and send the resolved IANA code in metrics API calls instead.

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

No branches or pull requests

3 participants