Merge branch 'fix/acc-period-step-change-shorten-elapsed' into 'master'

Adjust cronjob interval to ensure daily execution

See merge request Chill-Projet/chill-bundles!814
This commit is contained in:
2025-04-10 13:49:11 +00:00
2 changed files with 7 additions and 1 deletions

View File

@@ -26,7 +26,7 @@ readonly class AccompanyingPeriodStepChangeCronjob implements CronJobInterface
{
$now = $this->clock->now();
if (null !== $cronJobExecution && $now->sub(new \DateInterval('P1D')) < $cronJobExecution->getLastStart()) {
if (null !== $cronJobExecution && $now->sub(new \DateInterval('PT23H45M')) < $cronJobExecution->getLastStart()) {
return false;
}