diff --git a/src/Command/MonitorCommand.php b/src/Command/MonitorCommand.php index 0536d05..c411d98 100644 --- a/src/Command/MonitorCommand.php +++ b/src/Command/MonitorCommand.php @@ -7,6 +7,7 @@ use Doctrine\DBAL\Connection; use Shopware\Core\Content\Mail\Service\AbstractMailService; use Shopware\Core\Content\Mail\Service\MailService; +use Shopware\Core\Defaults; use Shopware\Core\Framework\Context; use Shopware\Core\Framework\DataAbstractionLayer\EntityRepository; use Shopware\Core\Framework\DataAbstractionLayer\Search\Criteria; @@ -130,7 +131,7 @@ private function scheduledTaskFailed(): bool $criteria->addFilter( new RangeFilter( 'nextExecutionTime', - ['lte' => $date->format(\DATE_ATOM)] + ['lte' => $date->format(Defaults::STORAGE_DATE_TIME_FORMAT)] ) ); $criteria->addFilter(new NotFilter(