Fix issue with subtask forecast
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user