# HG changeset patch # User Tom Gottfried # Date 1475249884 -7200 # Node ID 90bc64e74e4ae9024b810995ddd332fe644bd1e4 # Parent 43599f66ceafe4a9bbd990dcd76a23fc05b3c3fe Adjust end to end of the day. Before, no Probe could be generated at the day of the end. diff -r 43599f66ceaf -r 90bc64e74e4a src/main/java/de/intevation/lada/factory/ProbeFactory.java --- a/src/main/java/de/intevation/lada/factory/ProbeFactory.java Fri Sep 30 16:37:20 2016 +0200 +++ b/src/main/java/de/intevation/lada/factory/ProbeFactory.java Fri Sep 30 17:38:04 2016 +0200 @@ -201,8 +201,14 @@ public List create(Messprogramm messprogramm, Long from, Long to) { Calendar start = Calendar.getInstance(); start.setTimeInMillis(from); + Calendar end = Calendar.getInstance(); end.setTimeInMillis(to); + /* Adjust to end of the day as we want to generate Probe objects + * before or at this day. */ + end.set(Calendar.HOUR_OF_DAY, 23); + end.set(Calendar.MINUTE, 59); + end.set(Calendar.SECOND, 59); List proben = new ArrayList();