Changeset 35850 in osm for applications


Ignore:
Timestamp:
2021-11-04T16:40:47+01:00 (3 years ago)
Author:
GerdP
Message:

see #14176 - Migrate OsmPrimitive to Instant

  • adapt deprecated code
Location:
applications/editors/josm/plugins/o5m
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/o5m/build.xml

    r34830 r35850  
    55    <property name="commit.message" value="Commit message"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="14699"/>
     7    <property name="plugin.main.version" value="17749"/>
    88
    99    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/o5m/src/org/openstreetmap/josm/plugins/o5m/io/O5mReader.java

    r34857 r35850  
    245245        if (lastTs != 0) {
    246246            checkTimestamp(lastTs);
    247             pd.setTimestamp(new Date(lastTs * 1000));
     247            pd.setInstant(new Date(lastTs * 1000).toInstant());
    248248            if (osmUser != null)
    249249                pd.setUser(osmUser);
Note: See TracChangeset for help on using the changeset viewer.