feat(indieblog) human readable times
This commit is contained in:
parent
be6825b3cb
commit
f906640edd
@ -133,10 +133,10 @@ $channel->addChild('language', 'en');
|
|||||||
|
|
||||||
$newEntries = [];
|
$newEntries = [];
|
||||||
foreach ($groupedByDay as $day => $items) {
|
foreach ($groupedByDay as $day => $items) {
|
||||||
if (time() - strtotime($day) < 172800) {
|
if (time() - strtotime($day) < (2 * 24 * 60 * 60)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (time() - strtotime($day) > 259200) {
|
if (time() - strtotime($day) > (3 * 24 * 60 * 60)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (count($items) < 10) {
|
if (count($items) < 10) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user