Update check-health.ps1 and check-time-zone.ps1

This commit is contained in:
Markus Fleschutz 2022-10-16 11:32:21 +02:00
parent dcd833acef
commit 3458087efc
2 changed files with 2 additions and 2 deletions

View File

@ -13,10 +13,10 @@
& "$PSScriptRoot/check-uptime.ps1"
& "$PSScriptRoot/check-operating-system.ps1"
& "$PSScriptRoot/check-time-zone.ps1"
& "$PSScriptRoot/check-cpu.ps1"
& "$PSScriptRoot/check-ram.ps1"
& "$PSScriptRoot/check-swap-space.ps1"
& "$PSScriptRoot/check-time-zone.ps1"
& "$PSScriptRoot/check-smart-devices.ps1"
& "$PSScriptRoot/check-drives.ps1"
& "$PSScriptRoot/check-dns.ps1"

View File

@ -15,7 +15,7 @@ try {
[system.threading.thread]::currentThread.currentCulture = [system.globalization.cultureInfo]"en-US"
$Time = $((Get-Date).ToShortTimeString())
$TZ = (Get-Timezone)
if ($TZ.SupportsDaylightSavingTime) { $DST=", +01:00 DST" } else { $DST="" }
if ($TZ.SupportsDaylightSavingTime) { $DST=", DST+01:00:00" } else { $DST="" }
"✅ Time zone is $($TZ.Id) ($Time, UTC+$($TZ.BaseUtcOffset)$DST)."
exit 0 # success
} catch {