Ticket #6332: 6332.patch

File 6332.patch, 999 bytes (added by simon04, 6 years ago)
  • src/org/openstreetmap/josm/io/DiffResultProcessor.java

    diff --git a/src/org/openstreetmap/josm/io/DiffResultProcessor.java b/src/org/openstreetmap/josm/io/DiffResultProcessor.java
    index 083cc96..8d5be9c 100644
    a b  
    77import java.io.StringReader;
    88import java.util.Collection;
    99import java.util.Collections;
     10import java.util.Date;
    1011import java.util.HashMap;
    1112import java.util.HashSet;
    1213import java.util.Map;
    public void parse(String diffUploadResponse, ProgressMonitor progressMonitor) th 
    134135                }
    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            }
    139143            return processed;