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

@ -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 {