microsoft / microsoft/vscode-remote-release

Expose host IANA Timezone to development containers in Windows

Open
#4,271 5 comments 2 reactions 1 assignee View on GitHub

@chrmarti is already working on this.

Since Jan 6, 2021.

containers feature-request
Dominant language
Dockerfile
Stars
4.2k
Forks
470
Avg merge
1d 1h
Merged PRs (30d)
1

Description

This feature is related to using the Remote-Containers extension for local development.

When running containers in Linux, one can sync the host and container time zone by sharing /etc/timezone and /etc/localtime as volumes.

Unfortunately that does not work on Windows, hence when using containers for development they end up being in UTC unless told otherwise.

Most Linux distros allow configuring time zones using the TZ environment variable (e.g. TZ=America/New_York). So if somehow we could inject this information in the Dockerfile or in .devcontainer.json it would be easy to sync time between host and dev containers automatically.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.