daniel hahler <python-b...@thequod.de> added the comment:
http.cookiejar parses this correctly, using http2time: >>> import http.cookiejar >>> http.cookiejar.parse_ns_headers(["has_recent_activity=1; path=/; expires=Mon, 22 Apr 2019 23:27:18 -0000"]) [[('has_recent_activity', '1'), ('path', '/'), ('expires', 1555975638), ('version', '0')]] Ref: https://github.com/python/cpython/blob/9f316bd9684d27b7e21fbf43ca86dc5e65dac4af/Lib/http/cookiejar.py#L204-L249 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35824> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com