rubyforgood / casa

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

Improve timezones on sent emails page on org settings as admin #6026

Open elasticspoon opened 1 week ago

elasticspoon commented 1 week ago

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

Description

Under /casa_org/:id/edit we have a table that shows all sent emails.

Image

The times on this table are all in UTC. The Admins would love it if you could change it to use a more reasonable timezone.

I believe there are a few helpers in the application that set the timezone and it should be getting set as a session token as well.

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 #casa channel to ask questions quickly. And discord for office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues.

DariusPirvulescu commented 6 days ago

Hi, I can maybe look into it. But about "a more reasonable timezone", does that mean the user's local timezone? For this, I found the User::TimeZone concern, which reads the :browser_time_zone cookie. I think this might work.

elasticspoon commented 4 days ago

@DariusPirvulescu yea that exactly what we are going for. And if that can't be found EST is a reasonable fallback (most of our users in in the DC area)