Changeset 17982 in josm for trunk/src


Ignore:
Timestamp:
2021-07-10T21:21:24+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #21021 - see #18164 - OverpassTurboQueryWizard: fix "newer" statements

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/download/OverpassQueryWizardDialog.java

    r17336 r17982  
    6969            default:
    7070                super.buttonAction(buttonIndex, evt);
    71 
    7271        }
    7372    }
  • trunk/src/org/openstreetmap/josm/io/OverpassDownloadReader.java

    r17811 r17982  
    1212import java.time.ZoneId;
    1313import java.time.ZoneOffset;
     14import java.time.format.DateTimeParseException;
    1415import java.util.Arrays;
    1516import java.util.EnumMap;
     
    223224                        Logging.warn("Unsupported syntax: " + matcher.group(1));
    224225                }
    225             } catch (UncheckedParseException | IOException | NoSuchElementException | IndexOutOfBoundsException ex) {
     226            } catch (UncheckedParseException | DateTimeParseException | IOException | NoSuchElementException | IndexOutOfBoundsException ex) {
    226227                final String msg = tr("Failed to evaluate {0}", matcher.group());
    227228                Logging.log(Logging.LEVEL_WARN, msg, ex);
  • trunk/src/org/openstreetmap/josm/tools/SearchCompilerQueryWizard.java

    r17336 r17982  
    104104            final String value = ((SearchCompiler.KeyValue) match).getValue();
    105105            if ("newer".equals(key)) {
    106                 return "(newer:" + quote("{{date:" + value + "}}") + ")";
     106                return "(newer:" + quote(value) + ")";
    107107            }
    108108            return "[~" + quote(key) + "~" + quote(value) + "]";
Note: See TracChangeset for help on using the changeset viewer.