dynamodbstreams: ApproximateCreationDateTime
returns datetime.datetime
Instead of timestamp
#8042
-
moto version -
|
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
Hi @RajasGujarathi! The HTTP API will indeed send a ISO-8601 string, but boto3 will automatically convert that into a
datetime
object.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.
boto3
still converts the Moto response into adatetime
object, like it would do with an actual AWS response.moto/moto/dynamodbstreams/models.py
Line 92 in 035dfac