mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-15 11:54:56 +02:00
Merge 2bb3f6265f
into 28404f37b8
This commit is contained in:
commit
45e51479c5
2 changed files with 10 additions and 0 deletions
|
@ -22,6 +22,12 @@
|
||||||
3000,
|
3000,
|
||||||
3333
|
3333
|
||||||
],
|
],
|
||||||
|
// "initializeCommand" to get host timezone
|
||||||
|
"initializeCommand": "powershell -File .\\.devcontainer\\getHostTimeZone.ps1 || echo ''",
|
||||||
|
// set container timezone
|
||||||
|
"remoteEnv": {
|
||||||
|
"TZ": "${localEnv:TZ}"
|
||||||
|
},
|
||||||
// Use 'postCreateCommand' to run commands after the container is created.
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
"postCreateCommand": "sh .devcontainer/post-create.sh",
|
"postCreateCommand": "sh .devcontainer/post-create.sh",
|
||||||
// Configure tool-specific properties.
|
// Configure tool-specific properties.
|
||||||
|
|
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