From 6a09d6c860b64b218076b016c03177704785c11a Mon Sep 17 00:00:00 2001 From: Lanta Date: Fri, 3 Nov 2023 21:55:38 +0100 Subject: [PATCH] changes --- latestmatches.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/latestmatches.php b/latestmatches.php index 4e84d10..6590b50 100644 --- a/latestmatches.php +++ b/latestmatches.php @@ -49,17 +49,17 @@ error_reporting(E_ALL); if (isset($player_data['playername']) && $player_data['playername'] === $selected_player) { echo "

Recent Matches for $selected_player

"; echo ""; - echo ""; + echo ""; foreach ($player_data['player_matches'] as $match) { $date = new DateTime($match['createdAt']); $date->modify('+2 hours'); - $formattedDate = $date->format('Y-m-d H:i:s'); + $formattedDate = $date->format('m-d H:i:s'); $matchType = $match['matchType']; $gameMode = $match['gameMode']; $mapName = isset($mapNames[$match['mapName']]) ? $mapNames[$match['mapName']] : $match['mapName']; $kills = $match['stats']['kills']; - $damage = $match['stats']['damageDealt']; + $damage = number_format($match['stats']['damageDealt'], 0, '.', ''); $timeSurvived = $match['stats']['timeSurvived']; $winPlace = $match['stats']['winPlace']; echo "";
Match DateGame ModeMatchTypeMapKillsDamage DealtTime SurvivedwinPlace
Match DateGame ModeMatch TypeMapKillsDamage DealtTime Survivedwin Place
$formattedDate$gameMode$matchType$mapName$kills$damage$timeSurvived$winPlace