This commit is contained in:
Thijs Stobbelaar 2023-09-23 17:55:44 +02:00
parent 5d2ca87cae
commit 2e18116c77
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"