This commit is contained in:
Lanta 2023-09-23 17:55:44 +02:00
parent 39a1b46106
commit 57dfd9191d
2 changed files with 29 additions and 8 deletions

View file

@ -157,7 +157,8 @@
"createdAt": "2023-09-21T19:27:36Z",
"mapName": "Baltic_Main"
}
]
],
"updated": "09/23/2023 17:53:53 - Time Zone: W. Europe Standard Time"
},
{
"playername": "Petje1972",
@ -317,7 +318,8 @@
"createdAt": "2023-09-21T19:27:36Z",
"mapName": "Baltic_Main"
}
]
],
"updated": "09/23/2023 17:53:53 - Time Zone: W. Europe Standard Time"
},
{
"playername": "TaGMoM",
@ -477,7 +479,8 @@
"createdAt": "2023-09-20T19:04:26Z",
"mapName": "Baltic_Main"
}
]
],
"updated": "09/23/2023 17:53:53 - Time Zone: W. Europe Standard Time"
},
{
"playername": "r00tger",
@ -513,7 +516,8 @@
"createdAt": "2023-09-14T11:25:15Z",
"mapName": "Baltic_Main"
}
]
],
"updated": "09/23/2023 17:53:53 - Time Zone: W. Europe Standard Time"
},
{
"playername": "Masistuta",
@ -673,7 +677,8 @@
"createdAt": "2023-09-19T14:49:59Z",
"mapName": "Baltic_Main"
}
]
],
"updated": "09/23/2023 17:53:53 - Time Zone: W. Europe Standard Time"
},
{
"playername": "RalphNorris",
@ -833,7 +838,8 @@
"createdAt": "2023-09-21T10:18:31Z",
"mapName": "Baltic_Main"
}
]
],
"updated": "09/23/2023 17:53:53 - Time Zone: W. Europe Standard Time"
},
{
"playername": "Jimbo_The_One",
@ -993,7 +999,8 @@
"createdAt": "2023-09-23T13:39:55Z",
"mapName": "Desert_Main"
}
]
],
"updated": "09/23/2023 17:53:53 - Time Zone: W. Europe Standard Time"
},
{
"playername": "Shepherders",
@ -1091,6 +1098,7 @@
"createdAt": "2023-09-20T21:21:23Z",
"mapName": "Baltic_Main"
}
]
],
"updated": "09/23/2023 17:53:53 - Time Zone: W. Europe Standard Time"
}
]

View file

@ -64,4 +64,17 @@ foreach ($player in $player_data) {
}
$currentDateTime = Get-Date
# Get current timezone
$currentTimezone = (Get-TimeZone).Id
# Format and parse the information into a string
$formattedString = "$currentDateTime - Time Zone: $currentTimezone"
# Output the formatted string
$player_matches| Add-Member -Name "updated" -MemberType NoteProperty -Value $formattedString
$player_matches | convertto-json -Depth 100 | out-file "$scriptroot/../data/player_matches.json"