Skip to content

Commit b0a405f

Browse files
committed
Merge branch '1.x' into 2.x
* 1.x: fix: wrong recipe history URL format
2 parents bec213c + 06b58a5 commit b0a405f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Command/RecipesCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,11 @@ private function displayPackageInformation(Recipe $recipe)
226226

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

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

0 commit comments

Comments
 (0)