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
DateTime fields should be displayed in the users local time #1491
Comments
Research the impact of this |
@jaydonkrooss Assigning you as an observer on this one. |
There is a library change in the Django upgrade that may affect this. |
Here is the time zone related change with newest Django 4 upgrade. |
Canvas provides the user's time zone in the variable |
Removed imports that weren't being used and some that were duplicated. Organized the remaining imports. Added `pytz`.
Handle the user's time zone from Canvas more carefully. Don't assume it is set, doesn't have extraneous whitespace, or is valid. If it's not set or invalid, use the `TIME_ZONE` set in `env.hjson`.
Cron runs fine and no issues detected in beta testing. |
Thank you for contributing to this project!
Describe your problem or feature you'd like added
It was noted that times displayed are local to a specific time on the server (America/Detroit by default) and it would probably be useful to have the times match what's in Canvas for the user to their local time. This is mostly for the assignment view.
Describe the solution you'd like
Either get and use the custom LTI launch variable
Person.address.timezone
or use the browsers time zone to do the time conversions for the user. This would require storing the times in UTC first locally via #1490The text was updated successfully, but these errors were encountered: