diff options
Diffstat (limited to 'app/Model')
-rw-r--r-- | app/Model/SubtaskForecast.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/Model/SubtaskForecast.php b/app/Model/SubtaskForecast.php index cb86f6d7..0cb3175d 100644 --- a/app/Model/SubtaskForecast.php +++ b/app/Model/SubtaskForecast.php @@ -81,7 +81,13 @@ class SubtaskForecast extends Base $start = $slot[0]->getTimestamp(); 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) { |