Ignore:
Timestamp:
2018-11-27T21:40:10+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #16995 - de-duplicate storage of timestamp within WayPoint and refactor some methods, added documentation, added some robustness against legacy code (will also log a warning if detected). Patch by cmuelle8, modified

File:
1 edited

Legend:

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

    r14434 r14456  
    801801                wpt.setTimeInMillis(time);
    802802            } else if (n.hasKey(GpxConstants.PT_TIME)) {
    803                 wpt.setTime(DateUtils.fromString(n.get(GpxConstants.PT_TIME)));
     803                wpt.setTimeInMillis(DateUtils.tsFromString(n.get(GpxConstants.PT_TIME)));
    804804            } else if (!n.isTimestampEmpty()) {
    805805                wpt.setTime(Integer.toUnsignedLong(n.getRawTimestamp()));
Note: See TracChangeset for help on using the changeset viewer.