Skip to content

Commit

Permalink
fix issue 126 - use MILLI_OF_SECOND
Browse files Browse the repository at this point in the history
  • Loading branch information
sachin-bansal authored Feb 29, 2024
1 parent f6191ff commit f4b4a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/graphql/scalars/datetime/DateTimeScalar.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private static DateTimeFormatter getCustomDateTimeFormatter() {
.appendValue(MINUTE_OF_HOUR, 2)
.appendLiteral(':')
.appendValue(SECOND_OF_MINUTE, 2)
.appendFraction(NANO_OF_SECOND, 3, 3, true)
.appendFraction(MILLI_OF_SECOND, 3, 3, true)
.appendOffset("+HH:MM", "Z")
.toFormatter();
}
Expand Down

0 comments on commit f4b4a3b

Please sign in to comment.