- Timestamp:
- 2018-11-18T18:27:42+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r14388 r14430 116 116 import org.openstreetmap.josm.tools.ImageProvider.ImageSizes; 117 117 import org.openstreetmap.josm.tools.Logging; 118 import org.openstreetmap.josm.tools.UncheckedParseException; 118 119 import org.openstreetmap.josm.tools.date.DateUtils; 119 120 … … 796 797 addDoubleIfPresent(wpt, n, GpxConstants.PT_ELE); 797 798 798 if (time > 0) { 799 wpt.put(GpxConstants.PT_TIME, DateUtils.fromTimestamp(time)); 800 wpt.setTime(time); 801 } else if (n.hasKey(GpxConstants.PT_TIME)) { 802 wpt.put(GpxConstants.PT_TIME, DateUtils.fromString(n.get(GpxConstants.PT_TIME))); 803 wpt.setTime(); 804 } else if (!n.isTimestampEmpty()) { 805 wpt.put(GpxConstants.PT_TIME, DateUtils.fromTimestamp(n.getRawTimestamp())); 806 wpt.setTime(); 799 try { 800 if (time > 0) { 801 wpt.put(GpxConstants.PT_TIME, DateUtils.fromTimestamp(time)); 802 wpt.setTime(time); 803 } else if (n.hasKey(GpxConstants.PT_TIME)) { 804 wpt.put(GpxConstants.PT_TIME, DateUtils.fromString(n.get(GpxConstants.PT_TIME))); 805 wpt.setTime(); 806 } else if (!n.isTimestampEmpty()) { 807 wpt.put(GpxConstants.PT_TIME, DateUtils.fromTimestamp(n.getRawTimestamp())); 808 wpt.setTime(); 809 } 810 } catch (UncheckedParseException e) { 811 Logging.error(e); 807 812 } 808 813
Note:
See TracChangeset
for help on using the changeset viewer.