diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2016-07-10 13:45:38 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2016-07-10 13:45:38 (GMT) |
commit | d5b47fb8ce8acefaf952cfa60ec73a875e407e66 (patch) | |
tree | a5b41788d801d6e23fa7a4e532c5a42c1d8f311f /Lib/http | |
parent | 1a2b24f02dfd4eb3383f6ae2b59e5a4eb66fd5bb (diff) | |
download | cpython-d5b47fb8ce8acefaf952cfa60ec73a875e407e66.zip cpython-d5b47fb8ce8acefaf952cfa60ec73a875e407e66.tar.gz cpython-d5b47fb8ce8acefaf952cfa60ec73a875e407e66.tar.bz2 |
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) |