Fix issue with subtask forecast

This commit is contained in:
Frederic Guillot
2015-04-03 17:57:19 -04:00
parent e5f6e364f1
commit 91a5ec0885

View File

@@ -81,7 +81,13 @@ class SubtaskForecast extends Base
$start = $slot[0]->getTimestamp(); $start = $slot[0]->getTimestamp();
if ($slot[0] < $start_date) { if ($slot[0] < $start_date) {
continue;
if (! $this->dateParser->withinDateRange($start_date, $slot[0], $slot[1])) {
continue;
}
$interval = $this->dateParser->getHours(new DateTime, $slot[1]);
$start = time();
} }
while ($offset < $total) { while ($offset < $total) {