Skip to content

Commit

Permalink
Possible bugfix for the periods?
Browse files Browse the repository at this point in the history
The periods were starting at 1 instead of 0, bug?
  • Loading branch information
effgarces committed Sep 28, 2022
1 parent 8e97bab commit b3f7105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Application/Schedule/DailyLayout.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function GetPeriods(Date $displayDate, $fitToHours = false)
$tempPeriod = $currentPeriod;
while ($tempPeriod != null && $tempPeriod->BeginDate()->LessThan($nextPeriodTime)) {
$span++;
$tempPeriod = $periods[++$i];
$tempPeriod = $periods[++$i - 1];
}
if ($span > 0) {
$i--;
Expand Down

0 comments on commit b3f7105

Please sign in to comment.