Ignore:
Timestamp:
2007-06-18T15:59:25+02:00 (18 years ago)
Author:
christofd
Message:

fixed format of date in gpspoints

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/livegps/livegps/LiveGpsLayer.java

    r3095 r3257  
    66import java.beans.PropertyChangeEvent;
    77import java.beans.PropertyChangeListener;
     8import java.text.SimpleDateFormat;
    89import java.util.ArrayList;
    910import java.util.Collection;
     
    2526        //JLabel lbl;
    2627        boolean autocenter;
     28        private SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS");
    2729       
    2830        public LiveGpsLayer(Collection<Collection<GpsPoint>> data)
     
    5153                       
    5254                lastPos = thisPos;
    53                 lastPoint = new GpsPoint (thisPos, new Date().toString());
     55                lastPoint = new GpsPoint (thisPos, dateFormat.format(new Date()));
    5456                // synchronize when adding data, as otherwise the autosave action
    5557                // needs concurrent access and this results in an exception!
Note: See TracChangeset for help on using the changeset viewer.