We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 268af61 commit 8e5b28aCopy full SHA for 8e5b28a
prowler/providers/aws/lib/cloudtrail_timeline/models.py
@@ -344,7 +344,7 @@ class TimelineEvent(BaseModel):
344
event_details: dict[str, Any] = {}
345
346
@validator("timestamp", pre=True)
347
- def ensure_timezone_aware(v):
+ def ensure_timezone_aware(cls, v):
348
"""Ensure timestamp is timezone-aware UTC."""
349
if isinstance(v, datetime) and v.tzinfo is None:
350
return v.replace(tzinfo=timezone.utc)
0 commit comments