Skip to content

Commit

Permalink
fix: wrong recipe history URL format
Browse files Browse the repository at this point in the history
  • Loading branch information
meyerbaptiste committed Mar 1, 2024
1 parent 6b46a00 commit 57ac7d3
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 57ac7d3

Please sign in to comment.