InsaLan / infra-insalan.fr

infrastructure configuration of the insalan website
3 stars 0 forks source link

Postgresql complains about naive dates without timezones #12

Closed Lymkwi closed 1 year ago

Lymkwi commented 1 year ago

While running tests, you will get:

__init__.py:1504: RuntimeWarning: DateTimeField User.date_joined received a naive datetime (2023-09-11 00:00:00) while time zone support is active

So the solution seems to be to set the default timezone in postgresql, which could be done in the initialization script.