Skip to content

Commit 15085de

Browse files
Nyholmwouterj
andauthored
Update src/Command/PingStaleIssuesCommand.php
Co-authored-by: Wouter J <[email protected]>
1 parent 8b93068 commit 15085de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/PingStaleIssuesCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
6363

6464
/** @var string $timeString */
6565
$timeString = $input->getOption('not-updated-for');
66-
$notUpdatedAfter = new \DateTimeImmutable($timeString);
66+
$notUpdatedAfter = new \DateTimeImmutable('-'.ltrim($timeString, '-'));
6767
$issues = $this->issueApi->findStaleIssues($repository, $notUpdatedAfter);
6868

6969
if ($input->getOption('dry-run')) {

0 commit comments

Comments
 (0)