| Total Complexity | 2 |
| Total Lines | 9 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package com.osomapps.pt.reportphoto; |
||
| 10 | class LocalDateTimeSerializer extends JsonSerializer<LocalDateTime> { |
||
| 11 | |||
| 12 | @Override |
||
| 13 | public void serialize(LocalDateTime value, JsonGenerator gen, SerializerProvider serializers) |
||
| 14 | throws IOException { |
||
| 15 | gen.writeString( |
||
| 16 | value == null |
||
| 17 | ? null |
||
| 18 | : (value.format(DateTimeFormatter.ISO_LOCAL_DATE_TIME)) + "+00:00"); |
||
| 19 | } |
||
| 21 |