Skip to content

Commit

Permalink
Fix #228
Browse files Browse the repository at this point in the history
  • Loading branch information
ireun authored Oct 2, 2024
1 parent 5ee10ff commit eb79054
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit eb79054

Please sign in to comment.