fixed blog sorting on index.php

This commit is contained in:
Ludwig Lehnert 2025-04-21 17:01:42 +00:00
parent 886e022d23
commit 79b2c582d1

View File

@ -6,7 +6,7 @@ require_once __DIR__ . "/lib/_index.php";
$blogs = Blog::getAll();
usort($blogs, function ($a, $b) {
return strtotime($b->date) - strtotime($a->date);
return strtotime($b->date()) - strtotime($a->date());
});
?><!DOCTYPE html>