django-cms / djangocms-versioning

General purpose versioning package for Django CMS 4 and above.
Other
34 stars 30 forks source link

fix: Compare view naive date failure #247

Closed Aiky30 closed 3 years ago

Aiky30 commented 3 years ago

Fixes error: localtime() cannot be applied to a naive date time object.

The issue was introduced in the following commit, as it was only just released it has only just been seen: https://github.com/django-cms/djangocms-versioning/commit/492d01c974e40b007b71e2a7e961a9019a0d5ac4

The test suite forced the use fo a Timezone hence why this was missed when testing because no dates were ever naive.