Misc/Fixup

* lost changes to timestamps from a8edf6c912
* dates on comment, screenshot, video previews are now formatted correctly
This commit is contained in:
Sarjuuk
2022-03-23 11:19:00 +01:00
parent 1dc8d50289
commit e572967c08

View File

@@ -93,7 +93,10 @@ class UtilityPage extends GenericPage
}
}
else
{
array_walk($data, fn(&$d) => $d['date'] = date(Util::$dateFormatInternal, $d['date']));
$this->lvTabs[] = ['commentpreview', ['data' => array_values($data)]];
}
break;
case 'latest-screenshots': // rss
@@ -121,7 +124,10 @@ class UtilityPage extends GenericPage
}
}
else
{
array_walk($data, fn(&$d) => $d['date'] = date(Util::$dateFormatInternal, $d['date']));
$this->lvTabs[] = ['screenshot', ['data' => array_values($data)]];
}
break;
case 'latest-videos': // rss
@@ -149,7 +155,10 @@ class UtilityPage extends GenericPage
}
}
else
{
array_walk($data, fn(&$d) => $d['date'] = date(Util::$dateFormatInternal, $d['date']));
$this->lvTabs[] = ['video', ['data' => array_values($data)]];
}
break;
case 'unrated-comments':