changes
This commit is contained in:
parent
cd176dd3a4
commit
6a09d6c860
1 changed files with 3 additions and 3 deletions
|
|
@ -53,13 +53,13 @@ error_reporting(E_ALL);
|
|||
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 "<tr><td>$formattedDate</td><td>$gameMode</td><td>$matchType</td><td>$mapName</td><td>$kills</td><td>$damage</td><td>$timeSurvived</td><td>$winPlace</td></tr>";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue