[PR #137] [CLOSED] Add TZ env support/docs for container timezone alignment #4483

Closed
opened 2026-10-22 04:08:01 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/137
Author: @Copilot
Created: 4/20/2026
Status: ❌ Closed

Base: main ← Head: copilot/add-tz-env-to-docs


📝 Commits (2)

  • 6bcf6c0 Initial plan
  • 7c9b47c docs: add TZ environment variable guidance for container deployments

📊 Changes

4 files changed (+13 additions, -2 deletions)

View changed files

📝 .env.example (+2 -0)
📝 README.md (+1 -0)
📝 docker-compose.yml (+1 -0)
📝 docs/installation/containers.md (+9 -2)

📄 Description

Why this change

Character schedules were effectively tied to container default time (commonly UTC), which mismatches local time deployments (e.g., UTC+8). This change makes timezone override explicit and documented for Docker/Podman users.

What changed

  • Container runtime config

    • docker-compose.yml now forwards TZ into the app container with a safe default:
      • TZ=${TZ:-UTC}
  • Environment configuration docs

    • Added TZ to .env.example with IANA timezone guidance.
    • Added TZ to the README configuration table, including scheduling/time-based behavior context.
  • Container installation docs

    • Updated docs/installation/containers.md with:
      • Compose .env example for TZ
      • docker run / podman run examples using -e TZ=...
  • Example

# docker-compose.yml
environment:
  - NODE_ENV=production
  - DATA_DIR=/app/data
  - TZ=${TZ:-UTC}

Validation

  • pnpm check
  • Manual verification completed (describe below)

Manual verification notes

  • Verified TZ is now configurable via compose .env and passed to container runtime.
  • Verified docs are aligned across .env.example, README.md, and docs/installation/containers.md.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

N/A (no UI changes)


🔄 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/Pasta-Devs/Marinara-Engine/pull/137 **Author:** [@Copilot](https://github.com/apps/copilot-swe-agent) **Created:** 4/20/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `copilot/add-tz-env-to-docs` --- ### 📝 Commits (2) - [`6bcf6c0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6bcf6c0a5a9369f6458e4257af4453392aaad316) Initial plan - [`7c9b47c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7c9b47c650f0f08e91c29295aa71989527210a53) docs: add TZ environment variable guidance for container deployments ### 📊 Changes **4 files changed** (+13 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+2 -0) 📝 `README.md` (+1 -0) 📝 `docker-compose.yml` (+1 -0) 📝 `docs/installation/containers.md` (+9 -2) </details> ### 📄 Description ## Why this change Character schedules were effectively tied to container default time (commonly UTC), which mismatches local time deployments (e.g., UTC+8). This change makes timezone override explicit and documented for Docker/Podman users. ## What changed - **Container runtime config** - `docker-compose.yml` now forwards `TZ` into the app container with a safe default: - `TZ=${TZ:-UTC}` - **Environment configuration docs** - Added `TZ` to `.env.example` with IANA timezone guidance. - Added `TZ` to the README configuration table, including scheduling/time-based behavior context. - **Container installation docs** - Updated `docs/installation/containers.md` with: - Compose `.env` example for `TZ` - `docker run` / `podman run` examples using `-e TZ=...` - **Example** ```yaml # docker-compose.yml environment: - NODE_ENV=production - DATA_DIR=/app/data - TZ=${TZ:-UTC} ``` ## Validation - [x] `pnpm check` - [x] Manual verification completed (describe below) ### Manual verification notes - Verified `TZ` is now configurable via compose `.env` and passed to container runtime. - Verified docs are aligned across `.env.example`, `README.md`, and `docs/installation/containers.md`. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) N/A (no UI changes) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:08:01 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4483
No description provided.