Skip to content

Conversation

@ryber
Copy link
Contributor

@ryber ryber commented Nov 17, 2025

Per issue #177 this PR adds support for java.time.Instant in graphql.scalars.datetime.DateTimeScalar

Instant is always in UTC per the java doc so as this marshals to OffsetDateTime (the default time type used by this library), it will explicitly place the Offset in UTC.

Copy link
Member

@bbakerman bbakerman left a comment

Choose a reason for hiding this comment

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

Yup this makes sense to me. Thank you

@bbakerman bbakerman merged commit b01e4bb into graphql-java:master Nov 17, 2025
1 check passed
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.

2 participants