We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e38219 commit 91566b3Copy full SHA for 91566b3
Scripts/check-time-zone.ps1
@@ -16,10 +16,10 @@ try {
16
[system.threading.thread]::currentThread.currentCulture = [system.globalization.cultureInfo]"en-US"
17
$Time = $((Get-Date).ToShortTimeString())
18
$TZ = (Get-Timezone)
19
- if ($TZ.SupportsDaylightSavingTime) { $DST="+ 01:00:00 daylight saving time" } else { $DST="" }
20
- Write-Host "✅ $Time (UTC + $($TZ.BaseUtcOffset) $($TZ.Id) $DST)"
+ if ($TZ.SupportsDaylightSavingTime) { $DST=", DST+1h" } else { $DST="" }
+ Write-Host "✅ $Time $($TZ.Id) time (TZ+$($TZ.BaseUtcOffset)$($DST))"
21
exit 0 # success
22
} catch {
23
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
24
exit 1
25
-}
+}
0 commit comments