Changeset 9740 in josm for trunk/src


Ignore:
Timestamp:
2016-02-04T22:18:54+01:00 (9 years ago)
Author:
simon04
Message:

see #12485 - Add unit test for nmea reading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/NmeaReader.java

    r9703 r9740  
    2020import org.openstreetmap.josm.data.gpx.ImmutableGpxTrack;
    2121import org.openstreetmap.josm.data.gpx.WayPoint;
    22 import org.openstreetmap.josm.tools.date.DateUtils;
    2322
    2423/**
     
    287286                    // As this sentence has no complete time only use it
    288287                    // if there is no time so far
    289                     currentwp.put(GpxConstants.PT_TIME, DateUtils.fromDate(d));
     288                    currentwp.setTime(d);
    290289                }
    291290                // elevation
     
    398397                }
    399398                // time: this sentence has complete time so always use it.
    400                 currentwp.put(GpxConstants.PT_TIME, DateUtils.fromDate(d));
     399                currentwp.setTime(d);
    401400                // speed
    402401                accu = e[GPRMC.SPEED.position];
Note: See TracChangeset for help on using the changeset viewer.