Idea how to set host tz in the container

This commit is contained in:
lukeIam 2023-09-14 18:25:12 +01:00
parent fea28351f9
commit 2bb3f6265f
2 changed files with 10 additions and 0 deletions

View file

@ -22,6 +22,12 @@
3000,
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.
"postCreateCommand": "sh .devcontainer/post-create.sh",
// Configure tool-specific properties.