fixed interval construction for Igtimi resource loading

This commit is contained in:
Axel Uhl
2014-09-23 10:08:14 +02:00
parent db65465c7c
commit c7264e3b7c
@@ -163,8 +163,8 @@ public class IgtimiConnectionImpl implements IgtimiConnection {
// http://bugzilla.sapsailing.com/bugzilla/show_bug.cgi?id=2002 that talks about a one-month limitation
// imposed by the Igtimi API
TimePoint windowStartTime = startTime;
while (!startTime.after(endTime)) {
TimePoint windowEndTime = startTime.plus(Duration.ONE_WEEK);
while (!windowStartTime.after(endTime)) {
TimePoint windowEndTime = windowStartTime.plus(Duration.ONE_WEEK);
if (windowEndTime.after(endTime)) {
windowEndTime = endTime;
}