mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Misc/Fixup
* lost changes to timestamps from a8edf6c912
* dates on comment, screenshot, video previews are now formatted correctly
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user