Index: build.xml
===================================================================
--- build.xml	(revision 35895)
+++ build.xml	(working copy)
@@ -3,7 +3,7 @@
     <!-- enter the SVN commit message -->
     <property name="commit.message" value="Changed constructor signature of plugin main class"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="15502"/>
+    <property name="plugin.main.version" value="17715"/>
     
     <!-- Configure these properties (replace "..." accordingly).
          See https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
Index: src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxWayPoint.java
===================================================================
--- src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxWayPoint.java	(revision 35895)
+++ src/org/openstreetmap/josm/plugins/editgpx/data/EditGpxWayPoint.java	(working copy)
@@ -1,5 +1,6 @@
 package org.openstreetmap.josm.plugins.editgpx.data;
 
+import java.time.Instant;
 import java.util.HashMap;
 import java.util.Map;
 
@@ -20,7 +21,7 @@
 
     public WayPoint createWayPoint() {
         WayPoint result = new WayPoint(getCoor());
-        result.setTime((long) time);
+        result.setInstant(Instant.ofEpochSecond((long) time));
         result.attr = attributes;
         return result;
     }
