From 0b34c1eb6002f58b93d33cada9e99e0b32ce895f Mon Sep 17 00:00:00 2001 From: u$f Date: Mon, 27 May 2024 10:52:11 +0200 Subject: [PATCH] Timestamp::from --- .../trace/api/server/model/filter/JquerySessionFilter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/usf/trace/api/server/model/filter/JquerySessionFilter.java b/src/main/java/org/usf/trace/api/server/model/filter/JquerySessionFilter.java index aa9088e..253e4c3 100644 --- a/src/main/java/org/usf/trace/api/server/model/filter/JquerySessionFilter.java +++ b/src/main/java/org/usf/trace/api/server/model/filter/JquerySessionFilter.java @@ -6,10 +6,12 @@ import org.usf.jquery.core.DBFilter; import org.usf.trace.api.server.config.TraceApiTable; +import java.sql.Timestamp; import java.time.Instant; import java.util.ArrayList; import java.util.Collection; +import static java.sql.Timestamp.from; import static org.usf.jquery.core.Utils.isEmpty; import static org.usf.trace.api.server.config.TraceApiColumn.*; @@ -36,10 +38,10 @@ public Collection filters(TraceApiTable table) { filters.add(table.column(ENVIRONEMENT).in(getEnvironments())); } if(getStart() != null) { - filters.add(table.column(START).greaterOrEqual(getStart())); + filters.add(table.column(START).greaterOrEqual(from(getStart()))); } if(getEnd() != null) { - filters.add(table.column(END).lessThan(getEnd())); + filters.add(table.column(END).lessThan(from(getEnd()))); } return filters; }