diff --git a/data/player_matches.json b/data/player_matches.json index 05b8afd..cb6c62e 100644 --- a/data/player_matches.json +++ b/data/player_matches.json @@ -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" } ] diff --git a/update/get_matches.ps1 b/update/get_matches.ps1 index f7e0e3c..f9b85d9 100644 --- a/update/get_matches.ps1 +++ b/update/get_matches.ps1 @@ -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" \ No newline at end of file