whoops, set created_at

This commit is contained in:
Kenneth Reitz
2011-03-31 04:44:11 -04:00
parent e8f4f1b862
commit c1635f9b64
+1 -1
View File
@@ -111,7 +111,7 @@ class Gist(object):
setattr(self, key, value)
elif key == 'created_at':
# Attach datetime
datetime.strptime(value[:-6], '%Y/%m/%d %H:%M:%S')
setattr(self, 'created_at', datetime.strptime(value[:-6], '%Y/%m/%d %H:%M:%S'))
elif key == 'comments':
_comments = []