From e572967c08f352beaed2b90bb6e51b254b79f480 Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Wed, 23 Mar 2022 11:19:00 +0100 Subject: [PATCH] Misc/Fixup * lost changes to timestamps from a8edf6c9123d0f45ead885bfee1388eb86296b0d * dates on comment, screenshot, video previews are now formatted correctly --- pages/utility.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pages/utility.php b/pages/utility.php index fd9f1ca7..a571ccde 100644 --- a/pages/utility.php +++ b/pages/utility.php @@ -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':