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 8daf90c commit de53dd6Copy full SHA for de53dd6
aws_lambda_powertools/utilities/parser/models/apigwv2.py
@@ -55,6 +55,7 @@ class RequestContextV2(BaseModel):
55
timeEpoch: datetime
56
http: RequestContextV2Http
57
58
+ # validator to normalize timestamp
59
@validator("timeEpoch", pre=True)
60
def normalize_timestamp(cls, value):
61
date_utc = datetime.fromtimestamp(int(value) / 1000, tz=timezone.utc)
0 commit comments