Index: applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationHelper.java
===================================================================
--- applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationHelper.java	(revision 34507)
+++ applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/ElevationHelper.java	(revision 34746)
@@ -343,5 +343,5 @@
 
         Calendar calendar = GregorianCalendar.getInstance(); // creates a new calendar instance
-        calendar.setTime(wpt.getTime());   // assigns calendar to given date
+        calendar.setTime(wpt.getDate());   // assigns calendar to given date
         return calendar.get(Calendar.HOUR_OF_DAY);
     }
@@ -354,5 +354,5 @@
 
         Calendar calendar = GregorianCalendar.getInstance(); // creates a new calendar instance
-        calendar.setTime(wpt.getTime());   // assigns calendar to given date
+        calendar.setTime(wpt.getDate());   // assigns calendar to given date
         return calendar.get(Calendar.MINUTE);
     }
Index: applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/ElevationProfile.java
===================================================================
--- applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/ElevationProfile.java	(revision 34507)
+++ applications/editors/josm/plugins/ElevationProfile/src/org/openstreetmap/josm/plugins/elevation/gpx/ElevationProfile.java	(revision 34746)
@@ -195,5 +195,5 @@
     protected void setStart(WayPoint wp) {
         importantWayPoints[WAYPOINT_START] = wp;
-        this.start = wp.getTime();
+        this.start = wp.getDate();
     }
 
@@ -203,5 +203,5 @@
     protected void setEnd(WayPoint wp) {
         importantWayPoints[WAYPOINT_END] = wp;
-        this.end = wp.getTime();
+        this.end = wp.getDate();
     }
 
@@ -305,5 +305,5 @@
 
         if (wp1 != null && wp2 != null) {
-            long diff = wp2.getTime().getTime() - wp1.getTime().getTime();
+            long diff = wp2.getDate().getTime() - wp1.getDate().getTime();
             return diff;
         }
@@ -378,9 +378,9 @@
     @Override
     public void visitWayPoint(WayPoint wp) {
-        if (wp.getTime().after(end)) {
+        if (wp.getDate().after(end)) {
             setEnd(wp);
         }
 
-        if (wp.getTime().before(start)) {
+        if (wp.getDate().before(start)) {
             setStart(wp);
         }
