Changeset 10818 in josm


Ignore:
Timestamp:
2016-08-15T21:32:28+02:00 (3 years ago)
Author:
simon04
Message:

fix #6332 - Update user and timestamp of OSM objects after upload

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/DiffResultProcessor.java

    r10378 r10818  
    88import java.util.Collection;
    99import java.util.Collections;
     10import java.util.Date;
    1011import java.util.HashMap;
    1112import java.util.HashSet;
     
    135136                if (cs != null && !cs.isNew()) {
    136137                    p.setChangesetId(cs.getId());
     138                    p.setUser(cs.getUser());
     139                    // TODO is there a way to obtain the timestamp for non-closed changesets?
     140                    p.setTimestamp(Utils.firstNonNull(cs.getClosedAt(), new Date()));
    137141                }
    138142            }
Note: See TracChangeset for help on using the changeset viewer.