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

Browser timezone #1723

Closed
casiodk opened this issue Jan 10, 2024 · 3 comments
Closed

Browser timezone #1723

casiodk opened this issue Jan 10, 2024 · 3 comments

Comments

@casiodk
Copy link

casiodk commented Jan 10, 2024

Hi, I have an event with this timestamp

timestamp: "2024-01-10T15:00:08.168252+01:00"

But in the browser it shows as "10.01.2024, 14:00:08.168"

Is there any way to set the timezone in the browser app or have it show the time in the timezone and not UTC

@mostlyobvious
Copy link
Member

Hi Nicolai!

All event timestamps transmitted to RES Browser are iso8601-formatted in UTC. The browser shows it as such, although formatted differently. The lack of clear indication what timezone is shown there already caused me a trouble a few times.

I think defaulting to show timestamps in local timezone makes a lot of sense. There's a web browser API to retrieve client timezone — Intl.DateTimeFormat().resolvedOptions().timeZone and I've managed to use it #1727 experiment.

@mostlyobvious
Copy link
Member

Released v2.14.0 which includes Browser TZ improvements.

@casiodk
Copy link
Author

casiodk commented Mar 12, 2024

@mostlyobvious
This is not working in my browser. I am in copenhagen, but it shows the timezone in utc. Why not add an initializer where you can add the timezone?
Screenshot 2024-03-12 at 11 13 49

Screenshot 2024-03-18 at 10 24 17

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

2 participants