Correctly encode aware, non-UTC datetime objects
Before adoption: this commit came in with the history the project adopted, so no landing records it.
http_date() requires timetuple in UTC, but JSONEncoder.default() was passing a local timetuple instead.
authored by Eugene M. Kim · committed by Eugene M. Kim · parent d75d83d · Browse files · 2 files+5 added−1 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+5 added−1 removed
- other:+5 added−1 removed