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

(UI) Render DateTime of Event on the Client Side in the User's Timezone #2327

Open
sabine opened this issue Apr 9, 2024 · 3 comments · May be fixed by #2339
Open

(UI) Render DateTime of Event on the Client Side in the User's Timezone #2327

sabine opened this issue Apr 9, 2024 · 3 comments · May be fixed by #2339
Labels
enhancement New feature or request good first issue Good for newcomers help wanted ui

Comments

@sabine
Copy link
Collaborator

sabine commented Apr 9, 2024

In the events directory, we record the date/times of events in UTC. However, in the templates, we would like to display these in the viewer's timezone.

A straightforward way to do this is to use the JavaScript Date object to parse and render the time like this:

https://stackoverflow.com/questions/1837183/displaying-date-time-in-users-timezone-on-client-side

Modify the template community.eml such that, when JavaScript is available, the date/time is rendered in the user's timezone.

@sabine sabine added good first issue Good for newcomers ui help wanted enhancement New feature or request labels Apr 9, 2024
@maha-sachin
Copy link
Contributor

Hi @sabine, I am Maha can you help me to assign this issue?

@sabine
Copy link
Collaborator Author

sabine commented Apr 9, 2024

Hey @maha-sachin, happy to have you!

Outside the Outreachy application period, we tend to not assign issues to individuals (due to the effort of unassigning, in case the task is later abandoned). Best is to just comment here, as you did, and make an attempt. If you get stuck, you can open a draft PR and ask for help. ❤️

@maha-sachin
Copy link
Contributor

Hey @maha-sachin, happy to have you!

Outside the Outreachy application period, we tend to not assign issues to individuals (due to the effort of unassigning, in case the task is later abandoned). Best is to just comment here, as you did, and make an attempt. If you get stuck, you can open a draft PR and ask for help. ❤️

@sabine, Thank you for the warm welcome! I'm excited to be part of Outreachy and eager to contribute. I'll follow your suggestion and attempt the task.If I encounter any difficulties, I'll be sure to reach out for assistance. Thanks again! 😊🌟

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted ui
Projects
Status: 📋 Backlog
Development

Successfully merging a pull request may close this issue.

2 participants