mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-05-04 01:35:31 +00:00
Fixed localization issue with datetime.
This commit is contained in:
parent
54339e6f1a
commit
ebf9c893be
1 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,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, $null)
|
||||
$killDate = [datetime]::ParseExact($kill.KillTime, $dateFormat, [System.Globalization.CultureInfo]::InvariantCulture)
|
||||
If ($killdate.year -eq $currentDate.Year -and $killdate.month -eq $currentDate.Month) {
|
||||
$global:killTally++
|
||||
}
|
||||
|
@ -256,7 +256,7 @@ function Read-LogEntry {
|
|||
$ship = $ship -replace '-00(1|2|3|4|5|6|7|8|9|0)$', ''
|
||||
}
|
||||
|
||||
$KillTime = (Get-Date).ToUniversalTime().ToString("dd MMM yyyy HH:mm 'UTC'")
|
||||
$KillTime = (Get-Date).ToUniversalTime().ToString("dd MMM yyyy HH:mm 'UTC'", [System.Globalization.CultureInfo]::InvariantCulture)
|
||||
|
||||
# Get Enlisted Date
|
||||
if ($($page1.content) -match $joinDatePattern) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue