Ignore:
Timestamp:
2015-07-04T18:31:20+02:00 (5 years ago)
Author:
Don-vip
Message:

fix #11650 - performance: avoid creation of Date objects when it is not needed (patch by shinigami, modified slightly)

File:
1 edited

Legend:

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

    r8512 r8565  
    567567
    568568                if ("timestamp".equals(key)) {
    569                     mv = DateUtils.fromDate(osm.getTimestamp());
     569                    mv = DateUtils.fromTimestamp(osm.getRawTimestamp());
    570570                } else {
    571571                    mv = osm.get(key);
     
    10871087        @Override
    10881088        protected Long getNumber(OsmPrimitive osm) {
    1089             return osm.getTimestamp().getTime();
     1089            return osm.getRawTimestamp() * 1000L;
    10901090        }
    10911091
Note: See TracChangeset for help on using the changeset viewer.