diff --git a/Scripts/check-health.ps1 b/Scripts/check-health.ps1 index af4abee1..b06e282b 100755 --- a/Scripts/check-health.ps1 +++ b/Scripts/check-health.ps1 @@ -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" diff --git a/Scripts/check-time-zone.ps1 b/Scripts/check-time-zone.ps1 index ee42d729..9eb2ad98 100755 --- a/Scripts/check-time-zone.ps1 +++ b/Scripts/check-time-zone.ps1 @@ -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 {