From 8cd1e1f92ded23337975759288820bb8748afc8f Mon Sep 17 00:00:00 2001 From: Arthur Erlich Date: Mon, 16 Dec 2024 12:02:47 +0100 Subject: [PATCH] fix: use mysql compatible datetime format for monitor command --- src/Command/MonitorCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(