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

UTC datetimes in the database queried against the #88

Open
user-name-is-taken opened this issue Aug 13, 2019 · 0 comments
Open

UTC datetimes in the database queried against the #88

user-name-is-taken opened this issue Aug 13, 2019 · 0 comments

Comments

@user-name-is-taken
Copy link

user-name-is-taken commented Aug 13, 2019

If TIME_ZONE is set to America/New_York, USE_TZ is set to True, and this field is in the database:

{
            "id": 1,
            "time": "2019-08-31T20:28:42-04:00"
}

?time__hour=16 will return the field, but ?time__hour=20 will not. Although this behavior is correct, because the hour is 16 in America/New_York, this is confusing for users. Perhaps adding the timezone as an optional parameter to datetime queries would be useful.

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