Ignore:
Timestamp:
2018-11-20T01:13:10+01:00 (3 months ago)
Author:
Don-vip
Message:

fix #16995 - fix timestamp in GPX exports (patch by cmuelle8) + use Java 8 unsigned int API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java

    r13913 r14434  
    193193    protected int changesetId;
    194194
     195    /**
     196     * A time value, measured in seconds from the epoch, or in other words,
     197     * a number of seconds that have passed since 1970-01-01T00:00:00Z
     198     */
    195199    protected int timestamp;
    196200
     
    327331    @Override
    328332    public Date getTimestamp() {
    329         return new Date(TimeUnit.SECONDS.toMillis(timestamp));
     333        return new Date(TimeUnit.SECONDS.toMillis(Integer.toUnsignedLong(timestamp)));
    330334    }
    331335
Note: See TracChangeset for help on using the changeset viewer.