diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2016-07-10 15:34:21 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2016-07-10 15:34:21 (GMT) |
commit | 2d2e6be39a06a96e877b13f00acb85b01eb93bca (patch) | |
tree | 48591d0ff75f268d191aa9e266d90a5608ea4227 /Lib/cookielib.py | |
parent | e5fa8b0b0d998557b9679ffa3aaec9292fa7855b (diff) | |
download | cpython-2d2e6be39a06a96e877b13f00acb85b01eb93bca.zip cpython-2d2e6be39a06a96e877b13f00acb85b01eb93bca.tar.gz cpython-2d2e6be39a06a96e877b13f00acb85b01eb93bca.tar.bz2 |
[port to 2.7] - Issue #27466: Change time format returned by
http.cookie.time2netscape, confirming the netscape cookie format.
Diffstat (limited to 'Lib/cookielib.py')
-rw-r--r-- | Lib/cookielib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cookielib.py b/Lib/cookielib.py index eb9aec4..2dd7c48 100644 --- a/Lib/cookielib.py +++ b/Lib/cookielib.py @@ -113,7 +113,7 @@ def time2netscape(t=None): """ if t is None: t = time.time() year, mon, mday, hour, min, sec, wday = time.gmtime(t)[:7] - return "%s %02d-%s-%04d %02d:%02d:%02d GMT" % ( + return "%s, %02d-%s-%04d %02d:%02d:%02d GMT" % ( DAYS[wday], mday, MONTHS[mon-1], year, hour, min, sec) |