Skip to content

CloudEvent fails to parse datetime if microsoeconds precision is lesser than 6 decimals #19248

@rakshith91

Description

@rakshith91

According to the https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior

When used with the strptime() method, the %f directive accepts from one to six digits and zero pads on the right. %f is an extension to the set of format characters in the C standard (but implemented separately in datetime objects, and therefore always available).

this is wrong behavior.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions