mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-29 15:19:38 +00:00
Idea how to set host tz in the container
This commit is contained in:
parent
fea28351f9
commit
2bb3f6265f
2 changed files with 10 additions and 0 deletions
4
.devcontainer/getHostTimeZone.ps1
Normal file
4
.devcontainer/getHostTimeZone.ps1
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
$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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue