New submission from Rebecka:
The cookielib module uses time.time(), which produces a timestamp in the local
timezone (as read from the system time?), as the timestamp against which
expiration dates in cookies are compared.
However, typical usage of HTTP cookies would be specifying the
Rebecka added the comment:
I've checked and an updated test file for 3.4 shows the same behaviour in the
renamed module http.cookiejar.
Even though no standard exists I hope 3.4+ would be changed to simplify the
cookie handling, since there is a lot of hassle converting UTC times to
Rebecka added the comment:
Akira is correct: using time.mktime to produce the expiration date for the
cookie is wrong (thank you very much for the pointers!).
Using e.g. http.cookiejar.http2time with a HTTP formatted date string gives a
correct time stamp (with which cookie.is_expired