diff --git a/moto/ecr/models.py b/moto/ecr/models.py index 78cbd7a90..bb69637ee 100644 --- a/moto/ecr/models.py +++ b/moto/ecr/models.py @@ -276,7 +276,7 @@ class Image(BaseObject): self.repository = repository self.registry_id = registry_id or account_id self.image_digest = digest - self.image_pushed_at = str(datetime.now(timezone.utc).isoformat()) + self.image_pushed_at = int(datetime.now(timezone.utc).timestamp()) self.last_scan: Optional[datetime] = None def _create_digest(self) -> None: