Ignore:
Timestamp:
2007-06-11T15:36:56+02:00 (18 years ago)
Author:
christofd
Message:

fixed time format in gpx export

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/GpxTrackMarkerWriter.java

    r2974 r3162  
    55
    66import java.io.PrintWriter;
     7import java.text.SimpleDateFormat;
    78import java.util.Collection;
    89
     
    2425        private final Collection<Collection<GpsPoint>> gpsData;
    2526        private final Collection<Marker> markers;
     27        private static final SimpleDateFormat gpxDateFormat = new SimpleDateFormat("yyyy-MM-ddThh:mm:ss.SSS");
    2628       
    2729        public GpxTrackMarkerWriter(Collection<Collection<GpsPoint>> gpsData, Collection<Marker> markers) {
     
    5759                                        if (p.time != null && p.time.length()!=0) {
    5860                                                out.println(">");
    59                                                 out.println("        <time>"+p.time+"</time>");
     61                                                out.println("        <time>" + gpxDateFormat.format(p.time) + "</time>");
    6062                                                out.println("      </trkpt>");
    6163                                        } else
Note: See TracChangeset for help on using the changeset viewer.