Ignore:
Timestamp:
2018-07-28T01:03:54+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #14103 - GPX → OSM: convert additional tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java

    r14037 r14055  
    773773
    774774        if (time > 0) {
     775            wpt.put(GpxConstants.PT_TIME, DateUtils.fromTimestamp(time));
    775776            wpt.setTime(time);
     777        } else if (n.hasKey(GpxConstants.PT_TIME)) {
     778            wpt.put(GpxConstants.PT_TIME, DateUtils.fromString(n.get(GpxConstants.PT_TIME)));
     779            wpt.setTime();
    776780        } else if (!n.isTimestampEmpty()) {
    777             wpt.put("time", DateUtils.fromTimestamp(n.getRawTimestamp()));
     781            wpt.put(GpxConstants.PT_TIME, DateUtils.fromTimestamp(n.getRawTimestamp()));
    778782            wpt.setTime();
    779783        }
Note: See TracChangeset for help on using the changeset viewer.