Ignore:
Timestamp:
2009-07-03T22:19:22+02:00 (15 years ago)
Author:
stoecker
Message:

some more changes and bug fixes related to new projection stuff - GPX should now work also

File:
1 edited

Legend:

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

    r1453 r1724  
    1818import org.openstreetmap.josm.data.gpx.GpxTrack;
    1919import org.openstreetmap.josm.data.gpx.WayPoint;
     20import org.openstreetmap.josm.tools.DateUtils;
    2021
    2122/**
     
    285286                    // As this sentence has no complete time only use it
    286287                    // if there is no time so far
    287                     String gpxdate = WayPoint.GPXTIMEFMT.format(d);
    288                     currentwp.attr.put("time", gpxdate);
     288                    currentwp.attr.put("time", DateUtils.fromDate(d));
    289289                }
    290290                // elevation
     
    390390                }
    391391                // time: this sentence has complete time so always use it.
    392                 String gpxdate = WayPoint.GPXTIMEFMT.format(d);
    393                 currentwp.attr.put("time", gpxdate);
     392                currentwp.attr.put("time", DateUtils.fromDate(d));
    394393                // speed
    395394                accu = e[GPRMC.SPEED.position];
Note: See TracChangeset for help on using the changeset viewer.