Fix by thallian: use correct datetime.strptime
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 24 Jul 2014 17:09:17 +0000 (12:09 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 24 Jul 2014 17:09:17 +0000 (12:09 -0500)
datetime.dateime already imported, so....

mediagoblin/db/mixin.py

index 87f4383a45b6323e0201d37d2f2ac38ac7b6fc7d..3e9ed3a0146133b1c94a0c4385addb2e3b6d531e 100644 (file)
@@ -259,7 +259,7 @@ class MediaEntryMixin(GenerateSlugMixin):
 
         if 'Image DateTimeOriginal' in exif_all:
             # format date taken
-            takendate = datetime.datetime.strptime(
+            takendate = datetime.strptime(
                 exif_all['Image DateTimeOriginal']['printable'],
                 '%Y:%m:%d %H:%M:%S').date()
             taken = takendate.strftime('%B %d %Y')