Ignore:
Timestamp:
2019-04-21T23:45:46+02:00 (6 years ago)
Author:
donvip
Message:

remove deprecated API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/ColumbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV/ColumbusCSVReader.java

    r34639 r34984  
    1616import java.util.Collection;
    1717import java.util.Collections;
    18 import java.util.Date;
    1918import java.util.HashMap;
    2019import java.util.List;
     
    452451        // Extract date/time
    453452        SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyMMdd/HHmmss");
    454         Date d = null;
    455453   
    456454        try {
    457             d = sdf.parse(csvLine[2] + "/" + csvLine[3]);
    458             // format date according to GPX
    459             SimpleDateFormat f = new SimpleDateFormat(
    460                 "yyyy-MM-dd'T'HH:mm:ss'Z'");
    461    
    462             wpt.attr.put(ColumbusCSVReader.TIME_TAG, f.format(d).toString());
    463             wpt.setTime();
     455            wpt.setTime(sdf.parse(csvLine[2] + "/" + csvLine[3]));
    464456        } catch (ParseException ex) {
    465457            dateConversionErrors++;
Note: See TracChangeset for help on using the changeset viewer.