File tree 2 files changed +4
-8
lines changed
src/main/java/org/rutebanken/time
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 120
120
<version >4.0.0</version >
121
121
<scope >runtime</scope >
122
122
</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 >
128
123
<dependency >
129
124
<groupId >org.glassfish.jaxb</groupId >
130
125
<artifactId >jaxb-runtime</artifactId >
Original file line number Diff line number Diff line change 3
3
import java .time .LocalDateTime ;
4
4
import java .time .ZoneId ;
5
5
import java .time .ZonedDateTime ;
6
+ import java .time .format .DateTimeFormatter ;
6
7
import java .util .Objects ;
7
8
8
9
/**
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
10
11
* date times.
11
12
*/
12
13
public class XmlDateTime {
@@ -43,10 +44,10 @@ public boolean isLocal() {
43
44
@ Override
44
45
public String toString () {
45
46
if (zonedDateTime != null ) {
46
- return zonedDateTime .toString ( );
47
+ return zonedDateTime .format ( DateTimeFormatter . ISO_DATE_TIME );
47
48
}
48
49
else {
49
- return localDateTime .toString ( );
50
+ return localDateTime .format ( DateTimeFormatter . ISO_LOCAL_DATE_TIME );
50
51
}
51
52
}
52
53
}
You can’t perform that action at this time.
0 commit comments