diff options
author | 2011-07-23 15:43:45 -0400 | |
---|---|---|
committer | 2011-07-23 15:43:45 -0400 | |
commit | 22d4662a656ccc5acc929c0aa724bda8a053d2ac (patch) | |
tree | 92fdc0a9a819cfe5971cfa0acff2e751d6f5598a /github3/helpers.py | |
parent | return gh object for no auth (diff) | |
download | python-github3-22d4662a656ccc5acc929c0aa724bda8a053d2ac.tar.xz python-github3-22d4662a656ccc5acc929c0aa724bda8a053d2ac.zip |
get a user
Diffstat (limited to 'github3/helpers.py')
-rw-r--r-- | github3/helpers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/github3/helpers.py b/github3/helpers.py index 8e78c9b..62b28aa 100644 --- a/github3/helpers.py +++ b/github3/helpers.py @@ -45,7 +45,8 @@ def to_python(obj, in_dict, string_keys=None, date_keys=None, object_map=None, * for in_key in date_keys: in_date = in_dict.get(in_key) try: - out_date = datetime.strptime(in_date, '%Y-%m-%d %H:%M:%S') + # TODO: Fix date formatting. + out_date = datetime.strptime(in_date, '%Y-%m-%dT%H:%M:%SZ') except TypeError: out_date = None |