From 57ac7d3ae0a457b6c84efd39af927024d18f0e06 Mon Sep 17 00:00:00 2001 From: meyerbaptiste Date: Fri, 1 Mar 2024 20:04:32 +0100 Subject: [PATCH] fix: wrong recipe history URL format --- src/Command/RecipesCommand.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Command/RecipesCommand.php b/src/Command/RecipesCommand.php index e169cd7ce..c9fc1aee0 100644 --- a/src/Command/RecipesCommand.php +++ b/src/Command/RecipesCommand.php @@ -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('recipe history : '.$historyUrl);