Changeset 18120 in josm for trunk/src


Ignore:
Timestamp:
2021-08-04T21:36:51+02:00 (3 years ago)
Author:
Don-vip
Message:

see #21131 - use always exifTime over exifGpsTime in waypoint conversion, more precise as it usually includes milliseconds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/gpx/GpxImageEntry.java

    r18065 r18120  
    1111import java.util.Locale;
    1212import java.util.Objects;
    13 import java.util.Optional;
    1413import java.util.function.Consumer;
    1514
     
    779778        if (position != null) {
    780779            wpt = new WayPoint(position);
    781             wpt.setInstant(Optional.ofNullable(exifGpsTime).orElse(exifTime));
     780            wpt.setInstant(exifTime);
    782781            Double ele = getElevation();
    783782            if (ele != null) {
Note: See TracChangeset for help on using the changeset viewer.