Strip tzinfo data from datetimes to make them compatible with peewee on sqlite.

This commit is contained in:
jakedt 2014-03-28 17:52:47 -04:00
parent 40e81f478f
commit fd941ed3a4

View file

@ -1019,7 +1019,7 @@ def set_image_metadata(docker_image_id, namespace_name, repository_name,
except Image.DoesNotExist:
raise DataModelException('No image with specified id and repository')
fetched.storage.created = dateutil.parser.parse(created_date_str)
fetched.storage.created = dateutil.parser.parse(created_date_str).replace(tzinfo=None)
fetched.storage.comment = comment
fetched.storage.command = command