update
This commit is contained in:
parent
5d2ca87cae
commit
2e18116c77
2 changed files with 29 additions and 8 deletions
|
|
@ -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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue