This commit is contained in:
James Cole
2025-11-26 19:06:58 +01:00
parent 52164689d4
commit 1dd098a283

View File

@@ -208,7 +208,7 @@ class Navigation
$currentEnd = clone $end; $currentEnd = clone $end;
// Log::debug(sprintf('Now in endOfPeriod("%s", "%s").', $currentEnd->toIso8601String(), $repeatFreq)); // Log::debug(sprintf('Now in endOfPeriod("%s", "%s").', $currentEnd->toIso8601String(), $repeatFreq));
if('MTD' === $repeatFreq) { if('MTD' === $repeatFreq && $end->isFuture()) {
// fall back to a monthly schedule if the requested period is MTD. // fall back to a monthly schedule if the requested period is MTD.
Log::debug('endOfPeriod() requests "MTD", set it to "1M" instead.'); Log::debug('endOfPeriod() requests "MTD", set it to "1M" instead.');
$repeatFreq = '1M'; $repeatFreq = '1M';