Skip to content

Commit

Permalink
Fix issue with subtask forecast
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Apr 3, 2015
1 parent e5f6e36 commit 91a5ec0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/Model/SubtaskForecast.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,13 @@ public function getCalendarEvents($user_id, $end)
$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) {
Expand Down

0 comments on commit 91a5ec0

Please sign in to comment.