Index: /trunk/test/unit/org/openstreetmap/josm/io/GpxWriterTest.java
===================================================================
--- /trunk/test/unit/org/openstreetmap/josm/io/GpxWriterTest.java	(revision 17722)
+++ /trunk/test/unit/org/openstreetmap/josm/io/GpxWriterTest.java	(revision 17723)
@@ -12,5 +12,4 @@
 import java.time.ZoneOffset;
 import java.util.Arrays;
-import java.util.Date;
 import java.util.HashMap;
 import java.util.function.Consumer;
@@ -73,5 +72,5 @@
         // Checks that time stored as date is correctly written into XML timestamp
         testSingleWaypoint(
-                w -> w.put(GpxConstants.PT_TIME, Date.from(LocalDate.of(2018, Month.AUGUST, 2).atStartOfDay(ZoneOffset.UTC).toInstant())),
+                w -> w.put(GpxConstants.PT_TIME, LocalDate.of(2018, Month.AUGUST, 2).atStartOfDay(ZoneOffset.UTC).toInstant()),
                 "    <time>2018-08-02T00:00:00Z</time>\n");
     }
