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

Viewer's time zone? #922

Open
cwant opened this issue Feb 16, 2024 · 2 comments
Open

Viewer's time zone? #922

cwant opened this issue Feb 16, 2024 · 2 comments
Labels
feature request Requested by community. Decide on roadmap

Comments

@cwant
Copy link
Contributor

cwant commented Feb 16, 2024

Hi all, sorry if this is the wrong place to ask this.

I was wondering if TeSS supported handling the viewer's (browser) time zone when rendering events?

For example, with this Canadian training calendar, there is some JS that detects the viewer's timezone, then feeds that to the Google calendar:

https://alliancecan.ca/en/services/advanced-research-computing/technical-support/training-calendar

(This works because the Google calendar supports time zones in it's query string, e.g. ctz=America/Edmonton, and the JS gets this time zone value from the browser.)

Thanks, and please let me know if there's a more appropriate place to ask such questions.

@fbacall fbacall added the feature request Requested by community. Decide on roadmap label Feb 27, 2024
@fbacall
Copy link
Member

fbacall commented Feb 27, 2024

This is the right place!

We don't currently support this, but it would be quite straightforward to add.

There are a couple of issues that came to mind however:

  • For in-person events, it's possibly more helpful to see when an event is starting in the local timezone, but for online events where you may be connecting from a different country, then it would be good to see it in your own timezone.
  • Quite a lot of the events in TeSS (at least in the ELIXIR instance) are missing accurate timezone info and are just using UTC as a default.

I think we could just display the time in both the original and the current user's timezones at the same time, or have a button to switch between them.

@cwant
Copy link
Contributor Author

cwant commented Feb 28, 2024

Thanks for your comments @fbacall !
Definitely some things to consider. In our case Canada is pretty wide, so most of our events are online (at least the ones we advertise online), which is why the viewer's timezone is often the best choice for displaying events.
I'll poke around a bit here, and if I find a solution that is PR worthy, I'll post something.

Regards,
Chris

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Requested by community. Decide on roadmap
Projects
None yet
Development

No branches or pull requests

2 participants