Mines-Paristech-Students / Portail-des-eleves

The Mines Paristech's student life management application
23 stars 6 forks source link

Fix the use of naive datetime in ORM queries #368

Closed delmaass closed 2 years ago

delmaass commented 2 years ago

Each time a query was made to fetch the events, this warning was thrown in the console logs :

/usr/local/lib/python3.7/site-packages/django/db/models/fields/__init__.py:1427: RuntimeWarning: DateTimeField Event.ends_at received a naive datetime (2022-10-24 18:49:53.214774) while time zone support is active.
  RuntimeWarning)