This commit is contained in:
James Cole
2019-03-02 10:42:43 +01:00
parent 1b8d4e4c63
commit af07522f16
2 changed files with 179 additions and 1 deletions

View File

@@ -151,7 +151,7 @@ class Navigation
// per year
while ($perYearEnd >= $perYearStart) {
$perYearEnd = $this->startOfPeriod($perYearEnd, '1Y');
$currentEnd = $this->endOfPeriod($perYearEnd, '1Y')->subDay()->endOfDay();
$currentEnd = $this->endOfPeriod($perYearEnd, '1Y')->endOfDay();
if ($currentEnd->gt($start)) {
$periods[] = [
'start' => $perYearEnd,