From d2366bb18a0e9724c291f3613d0b358d2b945cb9 Mon Sep 17 00:00:00 2001 From: Leora Date: Sat, 10 Oct 2026 10:58:42 +0800 Subject: [PATCH] Make the clock zone a deployment setting (COFFER_TZ, default UTC) --- coffer/product.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coffer/product.py b/coffer/product.py index de96830..71b94da 100644 --- a/coffer/product.py +++ b/coffer/product.py @@ -6,6 +6,7 @@ from dataclasses import asdict from datetime import datetime from pathlib import Path from typing import Any +import os from zoneinfo import ZoneInfo from coffer.db import CofferDB @@ -30,7 +31,7 @@ from coffer.units import ( to_subunits, ) -PT = ZoneInfo("Australia/Perth") +PT = ZoneInfo(os.environ.get("COFFER_TZ", "UTC")) # deployment sets its own zone def now_pt() -> str: -- 2.47.3