We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e62c0f4 commit 6fc4edcCopy full SHA for 6fc4edc
couchdb/http.py
@@ -17,6 +17,7 @@
17
from httplib import BadStatusLine, HTTPConnection, HTTPSConnection
18
import re
19
import socket
20
+import time
21
try:
22
from cStringIO import StringIO
23
except ImportError:
@@ -81,8 +82,8 @@ class RedirectLimit(Exception):
81
82
CACHE_SIZE = 10, 75 # some random values to limit memory use
83
84
def cache_sort(i):
- return datetime.strptime(i[1][1]['Date'][5:-4], '%d %b %Y %H:%M:%S')
85
-
+ t = time.mktime(time.strptime(i[1][1]['Date'][5:-4], '%d %b %Y %H:%M:%S'))
86
+ return datetime.fromtimestamp(t)
87
88
class ResponseBody(object):
89
0 commit comments