Skip to content

Commit

Permalink
fix: use mysql compatible datetime format for monitor command
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur-ditegra authored and schneider-felix committed Dec 17, 2024
1 parent b930c7a commit 8cd1e1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Command/MonitorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 8cd1e1f

Please sign in to comment.