Changeset 7580 in josm


Ignore:
Timestamp:
2014-09-22T23:20:16+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #7166 - include second and milliseconds in filename of autosaved deleted layers to avoid potential name collision

File:
1 edited

Legend:

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

    r7315 r7580  
    152152        Date now = new Date();
    153153        while (true) {
    154             String filename = String.format("%1$s_%2$tY%2$tm%2$td_%2$tH%2$tM%3$s", layer.layerFileName, now, index == 0?"":"_" + index);
     154            String filename = String.format("%1$s_%2$tY%2$tm%2$td_%2$tH%2$tM%2$tS%2$tL%3$s", layer.layerFileName, now, index == 0?"":"_" + index);
    155155            File result = new File(autosaveDir, filename+".osm");
    156156            try {
Note: See TracChangeset for help on using the changeset viewer.