Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some dates are parsed as strings in response body #2

Open
MattFromGer opened this issue Dec 10, 2019 · 1 comment
Open

Some dates are parsed as strings in response body #2

MattFromGer opened this issue Dec 10, 2019 · 1 comment

Comments

@MattFromGer
Copy link
Collaborator

Date fields in the response body need to be parsed as actual Date objects - not as String object.
The problem is, the API is returning the following format, e.g. Mon Dec 10 22:59:59 UTC 2029 which seems to be a format out of the ANSI C specification.

At the moment the AWS v2 SDK can handle

  • Unix timestamps
  • ISO 8601 format
  • RFC 882 / RFC 1123 format

Maybe it is possible to inject a custom date unmarshaller?

@MattFromGer
Copy link
Collaborator Author

I opened a PR here for adding support for the ANSI C date format.
Recent experiments with injecting a custom unmarshaller haven't been successful yet.

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

No branches or pull requests

1 participant