Skip to content

Add default UTC offset when deserializing to OffsetDateTime fails due to a missing time offset value. - #1084

Merged
Philip Gichuhi (Ndiritu) merged 5 commits into
mainfrom
fix/error-handling
Feb 13, 2024
Merged

Philip Gichuhi (Ndiritu) merged 5 commits into
mainfrom
fix/error-handling

Conversation

@Ndiritu

Copy link
Copy Markdown
Contributor

Checks for failure case by parsing to LocalDateTime (doesn't contain time offset), otherwise returns initial OffsetDateTime parsing exception.

closes microsoftgraph/msgraph-sdk-java#1785

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
12.6% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@baywet Vincent Biret (baywet) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for fixing this!

@Ndiritu
Philip Gichuhi (Ndiritu) deleted the fix/error-handling branch February 13, 2024 14:31
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.

Error Handling

2 participants