Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Timestamp incorrectly set in Write-LogsEntry example #73

Description

@0pierri

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions