usgo / agagd

American Go Association Games Database (AGAGD)
https://agagd.usgo.org
MIT License
47 stars 30 forks source link

Fixtures Result in Runtime Warnings while time zone support is active #131

Closed michaelhiiva closed 3 years ago

michaelhiiva commented 4 years ago

Summary of Bug

On new the creation of new local app container the following error results: RuntimeWarning: DateTimeField Member.last_changed received a naive datetime (2020-07-18 00:00:00) while time zone support is active. Application still runs; however, there may be future issues if there is a need for timezone support.

Steps to Reproduce the Behaviour

1) docker-compose up

The Expected Behaviour

The scripts/make_fake_fixtures.py creates Django valid dates with timezone support which can be added to the database for local development.

References