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

@ -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"