[PR #2098] Idea how to set host tz in the container #3650

Open
opened 2026-04-25 00:16:30 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/2098
Author: @lukeIam
Created: 9/14/2023
Status: 🔄 Open

Base: masterHead: devcontainer_tz


📝 Commits (1)

  • 2bb3f62 Idea how to set host tz in the container

📊 Changes

2 files changed (+10 additions, -0 deletions)

View changed files

📝 .devcontainer/devcontainer.json (+6 -0)
.devcontainer/getHostTimeZone.ps1 (+4 -0)

📄 Description

This is as close as I could come - tested on windows but should also work on linux.
For windows we use a powershell script to set $TZ - for linux this env war usually already exists.

Small drawback: after the first execution you have to restart vscode as the new env var does not affect running processes.

(possibly) fixes #2097


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/2098 **Author:** [@lukeIam](https://github.com/lukeIam) **Created:** 9/14/2023 **Status:** 🔄 Open **Base:** `master` ← **Head:** `devcontainer_tz` --- ### 📝 Commits (1) - [`2bb3f62`](https://github.com/advplyr/audiobookshelf/commit/2bb3f6265fe3cd348ccdb58b7844d77abd9628dd) Idea how to set host tz in the container ### 📊 Changes **2 files changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `.devcontainer/devcontainer.json` (+6 -0) ➕ `.devcontainer/getHostTimeZone.ps1` (+4 -0) </details> ### 📄 Description This is as close as I could come - tested on windows but should also work on linux. For windows we use a powershell script to set $TZ - for linux this env war usually already exists. Small drawback: after the first execution you have to restart vscode as the new env var does not affect running processes. (possibly) fixes #2097 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:16:30 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#3650