rubyforgood / casa

Volunteer management system for nonprofit CASA, which serves foster youth in counties across America.
https://casavolunteertracking.org/
MIT License
314 stars 478 forks source link

Local Time Display Component #5134

Closed FireLemons closed 1 year ago

FireLemons commented 1 year ago

What type(s) of user does this feature affect?

Description

Displayed time across the app has timezones determined by the server but the user may not have the same time zone as the server resulting in incorrect times. In some cases the time displayed is actually UTC time.

Create a view component that renders the local time ~html with a unix timestamp and converts it to the local time on the client via javascript. Similar to discord timestamps~

The component should take as arguments

The title of the component should show a more specific representation of the time.

~so on the page it will render something like <t: UNIX_TIME_VALUE, f: FORMAT > and then javascript will convert the html into something human readable~ it's probably better to get the time zone from the cookies from the browser so no js required

Write Tests

See https://github.com/rubyforgood/casa/wiki/Working-with-Frontend-Assets

Screenshots of current behavior, if any

You can paste images on the clipboard here

How to access the QA site

Login Details:
Link to QA site

Login Emails:

password for all users: 12345678

Questions? Join Slack!

We highly recommend that you join us in slack https://rubyforgood.herokuapp.com/ #casa channel to ask questions quickly and hear about office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues.

SajjadAhmad14 commented 1 year ago

Hi there, I want to take this issue! Can you assign it to me, please?

SajjadAhmad14 commented 1 year ago

Hi @FireLemons I checked out the users/edit pages for all the mentioned users and it seems that time is correct. Can you produce a screenshot of the error please. time

github-actions[bot] commented 1 year ago

This issue has been inactive for 242 hours (10.08 days) and will be unassigned after 118 more hours (4.92 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time

SajjadAhmad14 commented 1 year ago

Give me more time

github-actions[bot] commented 1 year ago

This issue has been inactive for 251 hours (10.46 days) and will be unassigned after 109 more hours (4.54 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time