From 9852b6cd074cceec0d0b549bb6c9bd7fe50c86f2 Mon Sep 17 00:00:00 2001 From: Minteck <46352972+Minteck@users.noreply.github.com> Date: Sun, 1 Aug 2021 22:28:15 +0200 Subject: Update --- includes/blog/home.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'includes/blog/home.php') diff --git a/includes/blog/home.php b/includes/blog/home.php index a515c14..49817e8 100644 --- a/includes/blog/home.php +++ b/includes/blog/home.php @@ -10,13 +10,17 @@
= strlen(strip_tags($data["html"])) > 150 ? substr(strip_tags($data["html"]), 0, 150) . "..." : strip_tags($data["html"]) ?>
-= l("Published", "PubliƩ") ?> = DateTime::createFromFormat('Y-m-d', explode("@", $article)[0])->format("F jS, Y"); ?>
+= l("Published", "PubliƩ") ?> = strftime(l("%a %b %e, %Y", "%a %e %b %Y"), (int)DateTime::createFromFormat('Y-m-d', explode("@", $article)[0])->format("U")); ?>
" class="card-link">= l("Read more...", "Lire plus...") ?>