fix debug

This commit is contained in:
Mohamad Damaj 2023-06-26 11:20:21 +03:00
parent 43955e58c8
commit 01a52f28b5
1 changed files with 4 additions and 2 deletions

View File

@ -30,11 +30,13 @@ usort($items, function($a, $b) {
$b_time = DateTime::createFromFormat('D, d M Y H:i:s O', $b->pubDate)->getTimestamp();
return $b_time - $a_time;
});
// Loop through the sorted items and display them
// Debugging
foreach ($items as $item) {
// Debugging
echo $item->pubDate . ' => ' . strtotime($item->pubDate) . '<br>';
}
// Loop through the sorted items and display them
foreach ($items as $item) {
// Add a box around the article
echo '<div class="article-box">';