Merge pull request from scubamount/master

mainscript.ps1 hotfix
This commit is contained in:
BubbaGumpShrump 2025-01-17 17:17:15 -05:00 committed by GitHub
commit e43286bde1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -122,7 +122,7 @@ if (Test-Path "$scriptFolder\Kill-Log.csv") {
$currentDate = Get-Date
$dateFormat = "dd MMM yyyy HH:mm UTC"
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) {
$global:killTally++
}
@ -517,4 +517,4 @@ finally {
$reader.Close()
$fileStream.Close()
}
#>
#>