Using ToUniversalTime() results in an incorrect timestamp as the UTC conversion is repeated when the event is marshalled:
https://github.com/aws/aws-sdk-net/blob/0fb3f01067713d215363ec098a92d3ee05898434/sdk/src/Core/Amazon.Runtime/Internal/Transform/CustomMarshallTransformations.cs#L12
|
$logEntry.Timestamp = (Get-Date).ToUniversalTime() |
This isn't too obvious from the docs, perhaps it could also be clarified there?
Using
ToUniversalTime()results in an incorrect timestamp as the UTC conversion is repeated when the event is marshalled:https://github.com/aws/aws-sdk-net/blob/0fb3f01067713d215363ec098a92d3ee05898434/sdk/src/Core/Amazon.Runtime/Internal/Transform/CustomMarshallTransformations.cs#L12
quickstart-examples/samples/ec2-instance-userdata/ec2InstanceUserData.yaml
Line 91 in 106a43a
This isn't too obvious from the docs, perhaps it could also be clarified there?