Changeset 34984 in osm for applications/editors/josm/plugins
- Timestamp:
- 2019-04-21T23:45:46+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ColumbusCSV/src/org/openstreetmap/josm/plugins/columbusCSV/ColumbusCSVReader.java
r34639 r34984 16 16 import java.util.Collection; 17 17 import java.util.Collections; 18 import java.util.Date;19 18 import java.util.HashMap; 20 19 import java.util.List; … … 452 451 // Extract date/time 453 452 SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyMMdd/HHmmss"); 454 Date d = null;455 453 456 454 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])); 464 456 } catch (ParseException ex) { 465 457 dateConversionErrors++;
Note:
See TracChangeset
for help on using the changeset viewer.