From b2bfa6d268649c47616c6baf4350c2711222929d Mon Sep 17 00:00:00 2001 From: serversdown Date: Thu, 28 May 2026 05:41:26 +0000 Subject: [PATCH] compose: set TZ=America/New_York on terra-view + sfm services MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Default display timezone for server logs + PDF report rendering on both terra-view and sfm services. Override per-deployment in this file for non-US-East installations. DB columns are always UTC regardless — only affects what operators see in logs / PDFs / any text-rendered timestamp. Modal display uses browser TZ via toLocaleString (no server config needed). Pairs with seismo-relay commit 6381dcb (tz env var support in the Dockerfile + report_pdf UTC→local conversion). Co-Authored-By: Claude Opus 4.7 (1M context) --- docker-compose.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index a9a1ca2..77f682e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,6 +11,10 @@ services: - ENVIRONMENT=production - SLMM_BASE_URL=http://host.docker.internal:8100 - SFM_BASE_URL=http://sfm:8200 + # Display timezone for server logs + any text-rendered timestamps. + # DB columns are stored UTC regardless; this only affects what + # operators see. Override here for non-US-East deployments. + - TZ=America/New_York restart: unless-stopped depends_on: - slmm @@ -59,6 +63,10 @@ services: environment: - PYTHONUNBUFFERED=1 - PORT=8200 + # Display timezone — affects server log timestamps, the PDF + # report renderer's UTC→local conversions, and matplotlib's + # datetime axes. DB columns (created_at etc.) are always UTC. + - TZ=America/New_York restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8200/health"]