Skip to content

bug: aws scalar type for AWSDateTime should include milliseconds #503

Closed
@michaelbrewer

Description

@michaelbrewer

What were you trying to accomplish?

Expected Behavior

AWSDateTime - An extended ISO 8601 date and time string in the format YYYY-MM-DDThh:mm:ss.sssZ.

Current Behavior

AWSDateTime is not including the millisecond part sss.

Possible Solution

Generate timestamps to include the milliseconds

Steps to Reproduce (for bugs)

> print(aws_datetime())
2021-07-02T17:09:47Z

Environment

  • Powertools version used: 1.17.0
  • Packaging format (Layers, PyPi): PyPi
  • AWS Lambda function runtime: Python 3.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions