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

Django fixes #515

Merged
merged 2 commits into from
May 24, 2024
Merged

Django fixes #515

merged 2 commits into from
May 24, 2024

Conversation

kfdm
Copy link
Collaborator

@kfdm kfdm commented May 24, 2024

In #495 ( 06a2c20 ) we upgraded Django. This means that Django itself doesn't depend on pytz, but we still had a few instances of our code requiring it. Instead of making pytz a dependency of Promgen, we can refactor a few bits to remove the dependency.

kfdm added 2 commits May 24, 2024 09:13
Newer django versions do not use pytz by default, so we can remove the
dependency here, and rely on Django's timezone methods.
Since the browser may post naive timestamps, we need to ensure that our
times are properly handled. We want to active the timezone from our
setting, and then use make_aware for our naive times.
@kfdm kfdm marked this pull request as ready for review May 24, 2024 00:14
@kfdm kfdm requested a review from a team as a code owner May 24, 2024 00:14
Copy link
Contributor

@vincent-olivert-riera vincent-olivert-riera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kfdm kfdm merged commit 1d1a96e into line:master May 24, 2024
5 checks passed
@kfdm kfdm deleted the django-fixes branch May 24, 2024 00:35
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.

2 participants