Strip tzinfo data from datetimes to make them compatible with peewee on sqlite.
This commit is contained in:
parent
40e81f478f
commit
fd941ed3a4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Reference in a new issue