From eb790540da3a03d2b4eed6f680d8901d4d8e0461 Mon Sep 17 00:00:00 2001 From: IreuN Date: Thu, 3 Oct 2024 01:19:06 +0200 Subject: [PATCH] Fix #228 --- .../plugins/mapillary/gui/dialog/TrafficSignFilter.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/openstreetmap/josm/plugins/mapillary/gui/dialog/TrafficSignFilter.java b/src/main/java/org/openstreetmap/josm/plugins/mapillary/gui/dialog/TrafficSignFilter.java index 2675053a8..e3b79c479 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/mapillary/gui/dialog/TrafficSignFilter.java +++ b/src/main/java/org/openstreetmap/josm/plugins/mapillary/gui/dialog/TrafficSignFilter.java @@ -8,8 +8,6 @@ import java.awt.GridBagLayout; import java.awt.event.ItemEvent; import java.time.Instant; -import java.time.ZoneId; -import java.time.format.DateTimeFormatter; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; @@ -309,14 +307,14 @@ private static void updateDates(String position, IDatePicker modified, IDateP StringBuilder filterText = new StringBuilder(); if (!Instant.MIN.equals(start)) { filterText.append(position).append("_seen_at > ") - .append(DateTimeFormatter.ISO_LOCAL_DATE.withZone(ZoneId.of("UTC")).format(start)); + .append(start.getEpochSecond()*1000); } if (knownStartEnd) { filterText.append(" && "); } if (!Instant.MIN.equals(end)) { filterText.append(position).append("_seen_at < ") - .append(DateTimeFormatter.ISO_LOCAL_DATE.withZone(ZoneId.of("UTC")).format(end)); + .append(end.getEpochSecond()*1000); } dateFilter.text = filterText.toString(); dateFilter.inverted = true;