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

fix(all): Don't return incorrect date format instance #3576

Merged
merged 2 commits into from
May 16, 2024

Conversation

mattcreaser
Copy link
Member

Issue #, if available:

Description of changes:
The DateJsonUnmarshaller.getInstance() function is supposed to return an instance that can unmarshall UNIX_TIMESTAMP dates, but due to a logic error it if any other piece of code used a different format when calling DateJsonUnmarshaller getInstance(format) then that format would be returned instead.

This change ensures that the version without arguments always returns an unmarshaller for UNIX_TIMESTAMP.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@mattcreaser mattcreaser requested a review from a team as a code owner May 15, 2024 14:17
tylerjroach
tylerjroach previously approved these changes May 15, 2024
@mattcreaser mattcreaser force-pushed the mattcreaser/date-unmarshaller-unix-instance branch from 7ebc54d to ff79c42 Compare May 15, 2024 14:23
@mattcreaser mattcreaser merged commit d9231da into main May 16, 2024
1 of 2 checks passed
@mattcreaser mattcreaser deleted the mattcreaser/date-unmarshaller-unix-instance branch May 16, 2024 14:40
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.

3 participants