allegro / django-powerdns-dnssec

Django application managing PowerDNS database
http://django-powerdns-dnssec.readthedocs.org
BSD 2-Clause "Simplified" License
27 stars 17 forks source link

Fix 'DateTimeField received a naive datetime' warnings #201

Closed blag closed 7 years ago

blag commented 7 years ago

Fixes these warnings:

.../django/db/models/fields/__init__.py:1430: RuntimeWarning: DateTimeField DeleteRequest.created received a naive datetime (1970-01-01 00:00:00) while time zone support is active.
  RuntimeWarning)
.../django/db/models/fields/__init__.py:1430: RuntimeWarning: DateTimeField DeleteRequest.created received a naive datetime (1970-01-01 00:00:00) while time zone support is active.
  RuntimeWarning)
.../django/db/models/fields/__init__.py:1430: RuntimeWarning: DateTimeField DomainRequest.created received a naive datetime (1970-01-01 00:00:00) while time zone support is active.
  RuntimeWarning)
.../django/db/models/fields/__init__.py:1430: RuntimeWarning: DateTimeField DomainRequest.created received a naive datetime (1970-01-01 00:00:00) while time zone support is active.
  RuntimeWarning)
.../django/db/models/fields/__init__.py:1430: RuntimeWarning: DateTimeField RecordRequest.created received a naive datetime (1970-01-01 00:00:00) while time zone support is active.
  RuntimeWarning)
.../django/db/models/fields/__init__.py:1430: RuntimeWarning: DateTimeField RecordRequest.created received a naive datetime (1970-01-01 00:00:00) while time zone support is active.
  RuntimeWarning)

when running tests with USE_TZ = True in a project settings.py.