We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c01b0b5 commit 3c77acaCopy full SHA for 3c77aca
neo-starter/src/main/java/com/neoteric/starter/jersey/time/ZonedDateTimeConverterProvider.java
@@ -9,6 +9,7 @@
9
import java.lang.annotation.Annotation;
10
import java.lang.reflect.Type;
11
import java.time.ZonedDateTime;
12
+import java.time.format.DateTimeFormatter;
13
import java.time.format.DateTimeParseException;
14
15
@Singleton
@@ -41,7 +42,11 @@ public ZonedDateTime fromString(String value) {
41
42
43
@Override
44
public String toString(ZonedDateTime value) {
- return null;
45
+ if (value == null) {
46
+ return null;
47
+ }
48
+ //TODO: Use injected formatter
49
+ return value.format(DateTimeFormatter.ISO_INSTANT);
50
}
51
52
0 commit comments