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 https://github.com/aws-quickstart/quickstart-examples/blob/106a43af32f2880ed3d23eaf8406555d8d2cb81d/samples/ec2-instance-userdata/ec2InstanceUserData.yaml#L91 This isn't too obvious from [the docs](https://docs.aws.amazon.com/powershell/latest/reference/items/Write-CWLLogEvent.html), 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?