Fixed time formatting in ec2/models.py (#778)

* Fixed time formatting in ec2/models.py

* Used freezegun on test that was failing due to time progression causing timestamp differences.
This commit is contained in:
Justin Wiley 2016-11-23 18:06:35 -08:00 committed by Steve Pulec
parent 136f6d67fb
commit d6890640b2

View File

@ -917,7 +917,7 @@ class Ami(TaggedEC2Resource):
self.architecture = None
self.kernel_id = None
self.platform = None
self.creation_date = datetime.utcnow().isoformat()
self.creation_date = utc_date_and_time()
if instance:
self.instance = instance