From c1635f9b64afbd8e8fc206f2a80cd387f6bce515 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Thu, 31 Mar 2011 04:44:11 -0400 Subject: [PATCH] whoops, set created_at --- gistapi/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gistapi/core.py b/gistapi/core.py index 947b1d1..85e18ee 100644 --- a/gistapi/core.py +++ b/gistapi/core.py @@ -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 = []