Skip to content

Add built-in String conversions for OffsetDateTime and OffsetTime - #4155

Closed
vietdungnguyen2005 wants to merge 1 commit into
mapstruct:mainfrom
vietdungnguyen2005:fix/offset-time-conversions-4154
Closed

vietdungnguyen2005 wants to merge 1 commit into
mapstruct:mainfrom
vietdungnguyen2005:fix/offset-time-conversions-4154

Conversation

@vietdungnguyen2005

Copy link
Copy Markdown

Fixes #4154.

Add built-in conversions between String and OffsetDateTime or OffsetTime. Use the ISO offset format by default and honor a supplied dateFormat in both directions. Document both conversions.

Validation: 66 focused processor tests passed, including the ISO and custom-format round trips under the JDK and Eclipse compilers.

OpenAI Codex assisted with the change and tests.

@filiphr

filiphr commented Nov 12, 2026

Copy link
Copy Markdown
Member

@vietdungnguyen2005 there is already an open PR for this at #4153. The issue was created so that we can have it in the release notes. Therefore, I am closing this.

@filiphr filiphr closed this Nov 12, 2026
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.

Add built in conversion between java.time OffsetDateTime and OffsetTime and String

2 participants