2021-11-17 22:33:58 +01:00
|
|
|
<?php
|
2023-07-04 17:06:20 +02:00
|
|
|
$last_rev = exec('git log -1 --pretty=format:"%H" '.$this_file);
|
2023-07-12 16:40:59 +02:00
|
|
|
$mtime = exec('LANG="fr_FR.UTF-8" git log -1 --pretty="format:%ct" '.$this_file);
|
|
|
|
$fmt = datefmt_create(
|
|
|
|
'fr-FR',
|
|
|
|
IntlDateFormatter::FULL,
|
|
|
|
IntlDateFormatter::FULL,
|
|
|
|
'Europe/Paris',
|
|
|
|
IntlDateFormatter::GREGORIAN,
|
|
|
|
'd MMMM Y à HH:mm:ss O'
|
|
|
|
);
|
2021-11-17 22:33:58 +01:00
|
|
|
?>
|
2023-07-12 16:40:59 +02:00
|
|
|
<p style="text-align:right;">Mis à jour le <a href="https://git.gnous.fr/gnous/main_website/commit/<?php echo $last_rev;?>" target="_blank"><?php echo datefmt_format($fmt, $mtime); ?></a></p>
|