Getting matches from cache (1 month old) #139

Merged
OpzekerIT merged 10 commits from dev into main 2023-11-22 14:33:00 +00:00
Showing only changes of commit d9279f1be7 - Show all commits

View file

@ -64,12 +64,10 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo
if ($match['stats']['name'] === $selected_player) {
foreach ($player_data['player_matches'] as $match) {
if (isset($_GET['filter_by_match_type'])) {
if ($_GET['filter_by_match_type'] !== 'all' && $match['matchType'] !== $_GET['filter_by_match_type']) {
continue;
}
}
$date = new DateTime($match['createdAt']);
$date->modify('+1 hours');
$formattedDate = $date->format('m-d H:i:s');