diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2016-07-10 13:49:49 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2016-07-10 13:49:49 (GMT) |
commit | 290b42de73d09dadc50fcd213787a4ba5e8724a3 (patch) | |
tree | dd979f8fc1a07280d4a22d936ac29325a60f52d9 /Lib/http | |
parent | f9efb8b18b689ff5ef7f12e6124f21532d799516 (diff) | |
parent | d5b47fb8ce8acefaf952cfa60ec73a875e407e66 (diff) | |
download | cpython-290b42de73d09dadc50fcd213787a4ba5e8724a3.zip cpython-290b42de73d09dadc50fcd213787a4ba5e8724a3.tar.gz cpython-290b42de73d09dadc50fcd213787a4ba5e8724a3.tar.bz2 |
[merge from 3.5] - Issue #27466: Change time format returned by
http.cookie.time2netscape, confirming the netscape cookie format.
Diffstat (limited to 'Lib/http')
-rw-r--r-- | Lib/http/cookiejar.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py index 265ccf9..4466d2e 100644 --- a/Lib/http/cookiejar.py +++ b/Lib/http/cookiejar.py @@ -120,7 +120,7 @@ def time2netscape(t=None): dt = datetime.datetime.utcnow() else: dt = datetime.datetime.utcfromtimestamp(t) - return "%s %02d-%s-%04d %02d:%02d:%02d GMT" % ( + return "%s, %02d-%s-%04d %02d:%02d:%02d GMT" % ( DAYS[dt.weekday()], dt.day, MONTHS[dt.month-1], dt.year, dt.hour, dt.minute, dt.second) |