Open Thutmose3 opened 2 months ago
Dates in Django do not have timezones, as they are just dates, only DateTime has this, which makes sence.
Here we make DateRangeField timezone aware: https://github.com/carltongibson/django-filter/blob/920a79ff401eb87946a2a6593bee767a7cfb2fa0/django_filters/fields.py#L42
Why is that? It's causing really strange behaviour.
And when removing the timezone code for this, all is good with any timezone i try.
I created a PR for this here: https://github.com/carltongibson/django-filter/pull/1660
Dates in Django do not have timezones, as they are just dates, only DateTime has this, which makes sence.
Here we make DateRangeField timezone aware: https://github.com/carltongibson/django-filter/blob/920a79ff401eb87946a2a6593bee767a7cfb2fa0/django_filters/fields.py#L42
Why is that? It's causing really strange behaviour.
And when removing the timezone code for this, all is good with any timezone i try.