Skip to content

Commit 38d966c

Browse files
5V715geirsagberg
authored andcommitted
better defaults for #103
1 parent 2239dc3 commit 38d966c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

db-scheduler-ui/src/main/java/no/bekk/dbscheduler/ui/model/TaskRequestParams.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
package no.bekk.dbscheduler.ui.model;
1515

1616
import java.time.Instant;
17+
import java.time.temporal.ChronoUnit;
1718

1819
public class TaskRequestParams {
1920

@@ -55,8 +56,8 @@ public TaskRequestParams(
5556
this.searchTermTaskInstance = searchTermTaskInstance;
5657
this.taskNameExactMatch = taskNameExactMatch != null ? taskNameExactMatch : false;
5758
this.taskInstanceExactMatch = taskInstanceExactMatch != null ? taskInstanceExactMatch : false;
58-
this.startTime = startTime != null ? startTime : Instant.MIN;
59-
this.endTime = endTime != null ? endTime : Instant.MAX;
59+
this.startTime = startTime != null ? startTime : Instant.now().minus(50, ChronoUnit.DAYS);
60+
this.endTime = endTime != null ? endTime : Instant.now().plus(50, ChronoUnit.DAYS);
6061
this.refresh = refresh != null ? refresh : true;
6162
}
6263

0 commit comments

Comments
 (0)