mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-05-15 05:45:30 +00:00
commit
e43286bde1
1 changed files with 2 additions and 2 deletions
|
@ -122,7 +122,7 @@ if (Test-Path "$scriptFolder\Kill-Log.csv") {
|
||||||
$currentDate = Get-Date
|
$currentDate = Get-Date
|
||||||
$dateFormat = "dd MMM yyyy HH:mm UTC"
|
$dateFormat = "dd MMM yyyy HH:mm UTC"
|
||||||
foreach ($kill in $historicKills) {
|
foreach ($kill in $historicKills) {
|
||||||
$killDate = [datetime]::ParseExact($kill.KillTime, $dateFormat, [System.Globalization.CultureInfo]::InvariantCulture)
|
$killDate = [datetime]::ParseExact($kill.KillTime.Trim(), $dateFormat, [System.Globalization.CultureInfo]::InvariantCulture)
|
||||||
If ($killdate.year -eq $currentDate.Year -and $killdate.month -eq $currentDate.Month) {
|
If ($killdate.year -eq $currentDate.Year -and $killdate.month -eq $currentDate.Month) {
|
||||||
$global:killTally++
|
$global:killTally++
|
||||||
}
|
}
|
||||||
|
@ -517,4 +517,4 @@ finally {
|
||||||
$reader.Close()
|
$reader.Close()
|
||||||
$fileStream.Close()
|
$fileStream.Close()
|
||||||
}
|
}
|
||||||
#>
|
#>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue