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

Default to UTC #68

Closed
wants to merge 2 commits into from
Closed

Default to UTC #68

wants to merge 2 commits into from

Conversation

smsearcy
Copy link
Owner

@smsearcy smsearcy commented Sep 21, 2022

Use UTC for all times, instead of server's timezone.

(Code is in place to facilitate users choosing their preferred timezone, but the UI for that is not included in this branch.)

Closes #64

Use UTC as the default timezone instead of the server's timezone.
Rename the filter to `client_tz` instead of `local_tz` to more
accurately reflect it's purpose (once I add the UI for users to
customize their timezone).
Update `request.timezone` to be timezone object (so Pendulum doesn't
need to convert string back to object when rendering).
Wrap RRDtool graph calls in changes to the `TZ` environment variable so
they render in the preferred timezone.
Update graph views to pass timezone to the graph rendering functions.
Fix bug in the fallback for loading timezone from cookie.
@smsearcy smsearcy self-assigned this Sep 21, 2022
@smsearcy
Copy link
Owner Author

I'm not going to default to UTC until I have preferences in place (#91). That might end up replacing this PR.

@smsearcy smsearcy closed this Mar 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use UTC by default
1 participant