Ignore:
Timestamp:
2018-07-28T01:03:54+02:00 (17 months ago)
Author:
Don-vip
Message:

fix #14103 - GPX → OSM: convert additional tags

File:
1 edited

Legend:

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

    r13210 r14055  
    162162        if (attr.containsKey(PT_TIME)) {
    163163            try {
    164                 final Date time = DateUtils.fromString(get(PT_TIME).toString());
     164                final Object obj = get(PT_TIME);
     165                final Date time = obj instanceof Date ? (Date) obj : DateUtils.fromString(obj.toString());
    165166                this.time = time.getTime() / 1000.;
    166167                return time;
Note: See TracChangeset for help on using the changeset viewer.