We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b93068 commit 15085deCopy full SHA for 15085de
src/Command/PingStaleIssuesCommand.php
@@ -63,7 +63,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
63
64
/** @var string $timeString */
65
$timeString = $input->getOption('not-updated-for');
66
- $notUpdatedAfter = new \DateTimeImmutable($timeString);
+ $notUpdatedAfter = new \DateTimeImmutable('-'.ltrim($timeString, '-'));
67
$issues = $this->issueApi->findStaleIssues($repository, $notUpdatedAfter);
68
69
if ($input->getOption('dry-run')) {
0 commit comments