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
When set the last_modified property of StreamResponse the naive datetime object is interpreted as UTC. But naive datetime objects are usually in local timezone. For example datetime.now() returns naive datetime objects in local timezone. It provokes bugs in user code.
Happy to review. @greshilov I know I should review yours #5298 for ETags.
Now sure if I can do it on workdays but don't worry please -- I'll find time for the review on the weekend at least.
When set the
last_modified
property ofStreamResponse
the naive datetime object is interpreted as UTC. But naive datetime objects are usually in local timezone. For exampledatetime.now()
returns naive datetime objects in local timezone. It provokes bugs in user code.For example:
It would be better either raise an error if naive datetime object is passed or interpret it as local time.
The text was updated successfully, but these errors were encountered: