diff --git a/www/index.php b/www/index.php index 53f6cc4..dec4ff0 100644 --- a/www/index.php +++ b/www/index.php @@ -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()); }); ?>