Skip to content
Snippets Groups Projects

Fix naive datetime runtime error

Merged Ghost User requested to merge minimiseregistrations-runtimeerror into master
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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Ghost User resolved all discussions

    resolved all discussions

  • merged

  • Ghost User mentioned in commit e20b7e6c

    mentioned in commit e20b7e6c

  • Ghost User mentioned in commit 8f990c1c

    mentioned in commit 8f990c1c

  • Ghost User changed milestone to %24

    changed milestone to %24

  • Please register or sign in to reply
    Loading