Skip to content

Commit

Permalink
ECR: fix image wrong type for pushed_at (#7122)
Browse files Browse the repository at this point in the history
  • Loading branch information
SoenkeD committed Dec 14, 2023
1 parent 7227326 commit 43d3f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moto/ecr/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ def __init__(
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:
Expand Down

0 comments on commit 43d3f14

Please sign in to comment.