Fix naive datetime runtime error
All threads resolved!
All threads resolved!
Short description
When running the minimiseregistrations
command, the following error is thrown:
/usr/local/lib/python3.7/site-packages/django/db/models/fields/__init__.py:1363: RuntimeWarning: DateTimeField Entry.updated_at received a naive datetime (2019-04-25 00:00:00) while time zone support is active.
RuntimeWarning)
Using a timezone
object instead of a datetime
object fixes this.
Merge request reports
Activity
- A deleted user
added registrations technical change labels
mentioned in commit e20b7e6c
mentioned in commit 8f990c1c
changed milestone to %24
Please register or sign in to reply