Mise à jour d'ACTUALITÉ

This commit is contained in:
Adrien CHARBONNEAU 2021-12-14 16:07:31 +01:00
parent 117d025460
commit 30fcf05297

View File

@ -57,7 +57,7 @@ Bonne lecture ! -->
public static function get()
{
$commitDate = new \DateTime(trim(exec('git log -n1 --pretty=%ci HEAD')));
$commitDate = new \DateTime(trim(exec('git log -n1 --pretty=%ci index.php')));
$commitDate->setTimezone(new \DateTimeZone('Europe/Paris'));
return sprintf('%s', $commitDate->format('d/m/Y')); // H:i:s'));