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

fix django naive datetime warnings #3

Merged
merged 1 commit into from Aug 15, 2018

Conversation

AaronTorgerson
Copy link
Contributor

Django uses the warnings lib to log a warning message on every page load due to the use of naive datetimes in the BroadcastManager. This PR replaces the uses of datetime.now() with Django's timezone.now(), which makes use of the timezone configured in the Django settings module(s).

@bennylope bennylope merged commit 0c75564 into bennylope:master Aug 15, 2018
@bennylope
Copy link
Owner

Thanks!

@ntravis ntravis deleted the fix-naive-datetime-warnings branch December 12, 2020 01:42
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.

None yet

2 participants