bekk/db-scheduler-ui

Instant.MIN and Instant.MAX should not be the defaults - fails on query

5V715 opened this issue · 2 comments

the current default params for start and End time

this.startTime = startTime != null ? startTime : Instant.MIN;
this.endTime = endTime != null ? endTime : Instant.MAX;
fail when queried with postgres - will create pr with possible better defaults

Caused by: org.postgresql.util.PSQLException: ERROR: timestamp out of range: "169108098-07-04 06:51:43+02"

proposal coming with
startDate now() - 50 day
endDate now() + 50 days

Works for me now 🚀