Skip to content

Commit c1866ff

Browse files
authored
Merge pull request #2222 from zqzten/fix_offsetdatetime_formatter
Fix the default datetime formatter of OffsetDateTime dropping time zone info
2 parents 5146621 + 2a8f26d commit c1866ff

File tree

1 file changed

+1
-1
lines changed
  • kubernetes/src/main/java/io/kubernetes/client/openapi

1 file changed

+1
-1
lines changed

kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class JSON {
5151
.optionalStart()
5252
.appendFraction(ChronoField.NANO_OF_SECOND, 6, 6, true)
5353
.optionalEnd()
54-
.appendLiteral("Z")
54+
.appendOffsetId()
5555
.toFormatter();
5656

5757
private DateTypeAdapter dateTypeAdapter = new DateTypeAdapter();

0 commit comments

Comments
 (0)