Skip to content

Commit

Permalink
Merge branch '1.x' into 2.x
Browse files Browse the repository at this point in the history
* 1.x:
  fix: wrong recipe history URL format
  • Loading branch information
fabpot committed Mar 2, 2024
2 parents bec213c + 06b58a5 commit b0a405f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Command/RecipesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,11 @@ private function displayPackageInformation(Recipe $recipe)

// show commits since one second after the currently-installed recipe
if (null !== $commitDate) {
$historyUrl .= '?since='.(new \DateTime($commitDate))->modify('+1 seconds')->format('c\Z');
$historyUrl .= '?since=';
$historyUrl .= (new \DateTime($commitDate))
->setTimezone(new \DateTimeZone('UTC'))
->modify('+1 seconds')
->format('Y-m-d\TH:i:s\Z');
}

$io->write('<info>recipe history</info> : '.$historyUrl);
Expand Down

0 comments on commit b0a405f

Please sign in to comment.