Index: /applications/editors/josm/plugins/gpsblam/build.xml
===================================================================
--- /applications/editors/josm/plugins/gpsblam/build.xml	(revision 34752)
+++ /applications/editors/josm/plugins/gpsblam/build.xml	(revision 34753)
@@ -5,5 +5,5 @@
     <property name="commit.message" value="Commit message"/>
     <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
-    <property name="plugin.main.version" value="14153"/>
+    <property name="plugin.main.version" value="14456"/>
 
     <!-- Configure these properties (replace "..." accordingly).
Index: /applications/editors/josm/plugins/gpsblam/src/org/openstreetmap/josm/plugins/gpsblam/GPSBlamInputData.java
===================================================================
--- /applications/editors/josm/plugins/gpsblam/src/org/openstreetmap/josm/plugins/gpsblam/GPSBlamInputData.java	(revision 34752)
+++ /applications/editors/josm/plugins/gpsblam/src/org/openstreetmap/josm/plugins/gpsblam/GPSBlamInputData.java	(revision 34753)
@@ -54,5 +54,5 @@
                                 CachedLatLon cll = new CachedLatLon(wayPoint.getCoor());
                                 Point p = MainApplication.getMap().mapView.getPoint(cll.getEastNorth(projection));
-                                double pX = p.x-p1.x, pY=p.y-p1.y; // vector from point clicked to waypoint
+                                double pX = p.x-p1.x, pY = p.y-p1.y; // vector from point clicked to waypoint
                                 double pPar = pX*dirX + pY*dirY; // parallel component
                                 double pPerp = pX*perpdirX + pY*perpdirY; // perpendicular component
@@ -80,5 +80,5 @@
         this.add(cll);
         Calendar day = new GregorianCalendar();
-        day.setTimeInMillis((long) (wayPoint.time*1000d));
+        day.setTimeInMillis(wayPoint.getTimeInMillis());
         day.set(Calendar.HOUR_OF_DAY, 0);
         day.set(Calendar.MINUTE, 0);
