You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
If
TIME_ZONE
is set toAmerica/New_York
,USE_TZ
is set toTrue
, and this field is in the database:?time__hour=16
will return the field, but?time__hour=20
will not. Although this behavior is correct, because the hour is 16 inAmerica/New_York
, this is confusing for users. Perhaps adding the timezone as an optional parameter to datetime queries would be useful.The text was updated successfully, but these errors were encountered: