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

[SDK-3354] Deserialize UserProfile.createdAt as ISO8601 #571

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

adamjmcgrath
Copy link
Contributor

@adamjmcgrath adamjmcgrath commented Jun 15, 2022

Changes

Fix issue where createdAt from the UserProfile was being interpreted as a local date rather than UTC.

Originally did #564 - but needed a lighter touch

References

fixes #553

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. Since this library has unit testing, tests should be added for new functionality and existing tests should complete without errors.

  • This change adds unit test coverage

  • This change adds integration test coverage

  • This change has been tested on the latest version of the platform/language or why not

Checklist

@adamjmcgrath adamjmcgrath added the review:small Small review label Jun 15, 2022
@adamjmcgrath adamjmcgrath requested a review from a team as a code owner June 15, 2022 13:29
@adamjmcgrath adamjmcgrath changed the title Deserialize UserProfile.createdAt as ISO8601 [SDK-3354] Deserialize UserProfile.createdAt as ISO8601 Jun 15, 2022

private final Gson iso8601DateGson;

public UserProfileDeserializer() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@poovamraj - can you check that I'm initializing this correctly

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is good enough @adamjmcgrath, we could inject it through constructor but at this point I don't see this affecting our testing and if refactor is required, we can do it without affecting the external API.

Copy link
Contributor

@poovamraj poovamraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@adamjmcgrath adamjmcgrath merged commit 96d103f into vNext Jun 17, 2022
@adamjmcgrath adamjmcgrath deleted the user-profile-created-at branch June 17, 2022 13:25
@poovamraj poovamraj added this to the v2-Next milestone Jun 22, 2022
@frederikprijck frederikprijck mentioned this pull request Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants