Skip to content

Commit

Permalink
add date bot
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMaxium69 committed Apr 24, 2022
1 parent 13ec20f commit d505da1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions actu.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
} else if ($username == "Pierre-Louis Devaud"){
$id = "p";
}
$dateSrc = $actu['date'];
$dateTime = new DateTime($dateSrc);
?>
<li id="<?=$id?>">

Expand All @@ -41,6 +43,7 @@
<p>
<?php echo nl2br($actu['content']); ?>
</p>
<small><?= $dateTime->format('H:i d/m/y') ?></small>

</li>

Expand Down

0 comments on commit d505da1

Please sign in to comment.