8000 [Scheduler] Display friendly dates in debug:schedule · l-vo/symfony@ba04aaf · GitHub
[go: up one dir, main page]

Skip to content

Commit ba04aaf

Browse files
committed
[Scheduler] Display friendly dates in debug:schedule
1 parent bb7a7dd commit ba04aaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Scheduler/Command/DebugCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7777

7878
$date = new \DateTimeImmutable($input->getOption('date'));
7979
if ('now' !== $input->getOption('date')) {
80-
$io->comment(sprintf('All next run dates computed from %s.', $date->format(\DateTimeInterface::ATOM)));
80+
$io->comment(sprintf('All next run dates computed from %s.', $date->format('r')));
8181
}
8282

8383
foreach ($names as $name) {
@@ -114,7 +114,7 @@ private static function renderRecurringMessage(RecurringMessage $recurringMessag
114114
return [
115115
$message instanceof \Stringable ? (string) $message : (new \ReflectionClass($message))->getShortName(),
116116
(string) $trigger,
117-
$trigger->getNextRunDate($date)?->format(\DateTimeInterface::ATOM) ?? '-',
117+
$trigger->getNextRunDate($date)?->format('r') ?? '-',
118118
];
119119
}
120120
}

0 commit comments

Comments
 (0)
0