diff options
Diffstat (limited to 'includes/blog/list.php')
-rw-r--r-- | includes/blog/list.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/blog/list.php b/includes/blog/list.php index ba859a2..1c81630 100644 --- a/includes/blog/list.php +++ b/includes/blog/list.php @@ -9,7 +9,7 @@ ?> <?php if (strpos($article, "@") !== false && strpos($article, ".html") === false): ?> <?php $data = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/blog/data/" . $article), true); ?> - <a href="/blog/article-<?= explode(".", $article)[0] ?>" class="list-group-item list-group-item-action"><span class="text-muted"><?= DateTime::createFromFormat('Y-m-d', explode("@", $article)[0])->format("F jS, Y"); ?></span> · <?= $data["title"] ?></a> + <a href="/blog/article-<?= explode(".", $article)[0] ?>" class="list-group-item list-group-item-action"><span class="text-muted"><?= strftime(l("%a %b %e, %Y", "%a %e %b %Y"), (int)DateTime::createFromFormat('Y-m-d', explode("@", $article)[0])->format("U")); ?></span> · <?= l($data["title"], $data["title.fr"] ?? $data["title"]) ?></a> <?php endif;$i++; ?> <?php endforeach; ?> </div>
\ No newline at end of file |