Skip to content

Commit

Permalink
Use date type rather than datetime for 'releasedate attribute'.
Browse files Browse the repository at this point in the history
  • Loading branch information
wagnerrp committed Apr 30, 2012
1 parent aa0e26f commit 5b86d8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmdb3/tmdb_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def fromIMDB(cls, imdbid, locale=None):
budget = Datapoint('budget')
revenue = Datapoint('revenue')
releasedate = Datapoint('release_date', handler=lambda x: \
datetime.datetime.strptime(x, '%Y-%m-%d'))
datetime.date(*[int(y) for y in x.split('-')]))
homepage = Datapoint('homepage')
imdb = Datapoint('imdb_id')

Expand Down

0 comments on commit 5b86d8b

Please sign in to comment.