-
Notifications
You must be signed in to change notification settings - Fork 291
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
Comments
Hi @sabine, I am Maha can you help me to assign this issue? |
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! 😊🌟 |
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.The text was updated successfully, but these errors were encountered: