tweak post preview date format

This commit is contained in:
joe 2021-01-24 22:00:40 -06:00
parent 2932836181
commit 482213775a
Signed by: joe
GPG Key ID: 8595A3F8F2CE1B74
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@
while($row = $stmt->fetch()){
echo '<div class="post-preview">';
echo '<h3><a href="/blog/'.$row['postSlug'].'">'.$row['postTitle'].'</a></h3>';
echo '<p class="post-date">Posted on '.date('jS M Y H:i:s', strtotime($row['postDate'])).'</p>';
echo '<p class="post-date">Posted on '.date('F jS Y', strtotime($row['postDate'])).'</p>';
echo '<svg height="10" width="100%">';
echo '<line x1="0" y1="0" x2="960" y2="0" />';
echo '</svg>';