mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-24 15:49:02 +01:00
Updated check-time-zone.ps1
This commit is contained in:
parent
57342553e8
commit
010f4937a1
@ -5,7 +5,7 @@
|
||||
This PowerShell script queries the local time zone and prints it.
|
||||
.EXAMPLE
|
||||
PS> ./check-time-zone.ps1
|
||||
✅ 3:27 PM in W. Europe Summer Time (UTC+01:00:00 +1h DST)
|
||||
✅ 3:27 PM West Europe Summer Time (UTC+01:00:00 +1h DST)
|
||||
.LINK
|
||||
https://github.com/fleschutz/PowerShell
|
||||
.NOTES
|
||||
@ -24,7 +24,7 @@ try {
|
||||
$TZName = $TZ.StandardName
|
||||
$DST=""
|
||||
}
|
||||
Write-Host "✅ $Time in $TZName (UTC+$($offset)$($DST))"
|
||||
Write-Host "✅ $Time $TZName (UTC+$($offset)$($DST))"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Loading…
Reference in New Issue
Block a user