File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
src/main/java/org/rutebanken/time Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 120120 <version >4.0.0</version >
121121 <scope >runtime</scope >
122122 </dependency >
123- <dependency >
124- <groupId >com.migesok</groupId >
125- <artifactId >jaxb-java-time-adapters</artifactId >
126- <version >${jaxb.java.time.adapters.version} </version >
127- </dependency >
128123 <dependency >
129124 <groupId >org.glassfish.jaxb</groupId >
130125 <artifactId >jaxb-runtime</artifactId >
Original file line number Diff line number Diff line change 33import java .time .LocalDateTime ;
44import java .time .ZoneId ;
55import java .time .ZonedDateTime ;
6+ import java .time .format .DateTimeFormatter ;
67import java .util .Objects ;
78
89/**
9- * A wrapper type to represent the fact that xml xml dateTime can both include local and zoned
10+ * A wrapper type to represent the fact that the XML dateTime can both include local and zoned
1011 * date times.
1112 */
1213public class XmlDateTime {
@@ -43,10 +44,10 @@ public boolean isLocal() {
4344 @ Override
4445 public String toString () {
4546 if (zonedDateTime != null ) {
46- return zonedDateTime .toString ( );
47+ return zonedDateTime .format ( DateTimeFormatter . ISO_DATE_TIME );
4748 }
4849 else {
49- return localDateTime .toString ( );
50+ return localDateTime .format ( DateTimeFormatter . ISO_LOCAL_DATE_TIME );
5051 }
5152 }
5253}
You can’t perform that action at this time.
0 commit comments