Skip to content
Browse files

Use `date` type rather than `datetime` for 'releasedate attribute'.

  • Loading branch information...
1 parent aa0e26f commit 5b86d8bb95c69205d8669bb23c30ccd6b8514c4b @wagnerrp wagnerrp committed Apr 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tmdb3/tmdb_api.py
View
2 tmdb3/tmdb_api.py
@@ -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')

0 comments on commit 5b86d8b

Please sign in to comment.
Something went wrong with that request. Please try again.