Ignore:
Timestamp:
2016-11-20T17:33:33+01:00 (3 years ago)
Author:
simon04
Message:

see #13376 - Use TimeUnit instead of combinations of 1000/60/60/24

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java

    r10601 r11288  
    1515import java.util.HashSet;
    1616import java.util.List;
     17import java.util.concurrent.TimeUnit;
    1718
    1819import javax.swing.JOptionPane;
     
    312313
    313314    private BoundingXYVisitor modeDownload(BoundingXYVisitor v) {
    314         if (lastZoomTime > 0 && System.currentTimeMillis() - lastZoomTime > Main.pref.getLong("zoom.bounds.reset.time", 10L*1000L)) {
     315        if (lastZoomTime > 0 &&
     316                System.currentTimeMillis() - lastZoomTime > Main.pref.getLong("zoom.bounds.reset.time", TimeUnit.SECONDS.toMillis(10))) {
    315317            lastZoomTime = -1;
    316318        }
  • trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r11192 r11288  
    12041204        @Override
    12051205        protected Long getNumber(OsmPrimitive osm) {
    1206             return osm.getRawTimestamp() * 1000L;
     1206            return osm.getTimestamp().getTime();
    12071207        }
    12081208
Note: See TracChangeset for help on using the changeset viewer.