Simple rename

This commit is contained in:
Markus Fleschutz
2021-12-01 12:23:03 +01:00
parent 7b1dd66351
commit d9f65fd00d
2 changed files with 2 additions and 2 deletions

23
Scripts/check-time-zone.ps1 Executable file
View File

@ -0,0 +1,23 @@
<#
.SYNOPSIS
Determines the time zone
.DESCRIPTION
This script determines and returns the current time zone.
.EXAMPLE
PS> ./check-time-zone
.NOTES
Author: Markus Fleschutz · License: CC0
.LINK
https://github.com/fleschutz/PowerShell
#>
try {
$TimeZone = (Get-Timezone)
$Reply = "It's $($TimeZone.DisplayName)"
"✔️ $Reply"
& "$PSScriptRoot/speak-english.ps1" "$Reply"
exit 0 # success
} catch {
"⚠️ Error: $($Error[0]) ($($MyInvocation.MyCommand.Name):$($_.InvocationInfo.ScriptLineNumber))"
exit 1
}