Skip to content

Conversation

@akrennmair
Copy link

This PR adds microsecond support when decoding datetime by trying out two format strings, one without microsecond, one without, and only fails if none of them parse the input successfully. This resolves a slight interoperability issue between how Go encodes time.Time objects to JSON (in the format 2022-07-12T13:08:20.084000Z) and this library decodes datetime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant