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

Be more lenient in accepted instants #598

Merged
merged 3 commits into from
Jul 25, 2024
Merged

Be more lenient in accepted instants #598

merged 3 commits into from
Jul 25, 2024

Conversation

satabin
Copy link
Contributor

@satabin satabin commented Jul 25, 2024

When we use the Joda DateTime type, we accept a lot of different inputs that are not complete instant. Instant without month, day or time information are accepted and default to the beginning of the missing period.

This adds a more lenient parser (keeping the strict serializer) and ports some of the Joda time tests to ensure we have compatibility in accepted inputs.

When we use the Joda `DateTime` type, we accept a lot of different
inputs that are not complete instant. Instant without month, day or time
information are accepted and default to the beginning of the missing
period.

This adds a more lenient parser (keeping the strict serializer) and
ports some of the Joda time tests to ensure we have compatibility in
accepted inputs.
@satabin satabin requested a review from yanns as a code owner July 25, 2024 08:59
@satabin satabin enabled auto-merge July 25, 2024 10:16
@satabin satabin added this pull request to the merge queue Jul 25, 2024
Merged via the queue into main with commit 501224d Jul 25, 2024
8 checks passed
@satabin satabin deleted the java-time-json-compat branch July 25, 2024 10:59
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.

4 participants