audiobookshelf/.devcontainer/getHostTimeZone.ps1
2023-09-14 18:25:12 +01:00

4 lines
277 B
PowerShell

$env:TZ = [Windows.Globalization.Calendar,Windows.Globalization,ContentType=WindowsRuntime]::New().GetTimeZone()
[Environment]::SetEnvironmentVariable('TZ', "$env:TZ", 'Process')
[Environment]::SetEnvironmentVariable('TZ', "$env:TZ", 'User')
Write-Host "Host timezone: $env:TZ"