Commit 3060cf12 authored by Alejandro Gómez's avatar Alejandro Gómez
Browse files

parse datetime for `tweepy.models.List` objects

parent 7dbb6c46
......@@ -233,6 +233,8 @@ class List(Model):
for k,v in json.items():
if k == 'user':
setattr(lst, k, User.parse(api, v))
elif k == 'created_at':
setattr(lst, k, parse_datetime(v))
else:
setattr(lst, k, v)
return lst
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment