Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why are we making DateRangeField timezone aware? #1659

Open
Thutmose3 opened this issue May 14, 2024 · 1 comment
Open

Why are we making DateRangeField timezone aware? #1659

Thutmose3 opened this issue May 14, 2024 · 1 comment

Comments

@Thutmose3
Copy link

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:

class DateRangeField(RangeField):

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.

@Thutmose3
Copy link
Author

I created a PR for this here: #1660

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant