feat(indieblog) human readable times

This commit is contained in:
SansGuidon 2025-02-26 00:55:32 +00:00
parent be6825b3cb
commit f906640edd

View File

@ -133,10 +133,10 @@ $channel->addChild('language', 'en');
$newEntries = [];
foreach ($groupedByDay as $day => $items) {
if (time() - strtotime($day) < 172800) {
if (time() - strtotime($day) < (2 * 24 * 60 * 60)) {
continue;
}
if (time() - strtotime($day) > 259200) {
if (time() - strtotime($day) > (3 * 24 * 60 * 60)) {
continue;
}
if (count($items) < 10) {