dynamodbstreams: ApproximateCreationDateTime returns datetime.datetime Instead of timestamp
#8042
moto version -
|
Replies: 1 comment
|
Hi @RajasGujarathi! The HTTP API will indeed send a ISO-8601 string, but boto3 will automatically convert that into a For background information: Moto actually returns the date in ISO format as well, because we only intercept/mock the actual HTTP response. moto/moto/dynamodbstreams/models.py Line 92 in 035dfac |
Hi @RajasGujarathi! The HTTP API will indeed send a ISO-8601 string, but boto3 will automatically convert that into a
datetimeobject.See the boto3-specific API here: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodbstreams/client/get_records.html
For background information: Moto actually returns the date in ISO format as well, because we only intercept/mock the actual HTTP response.
boto3still converts the Moto response into adatetimeobject, like it would do with an actual AWS response.moto/moto/dynamodbstreams/models.py
Line 92 in 035dfac