From f31d4cd282ab13f59ef26185658eccde1b0acf7d Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 31 May 2026 03:33:00 +0000 Subject: [PATCH] fix: remove timezone abbreviation from receipt and statement timestamps Timestamps now show YYYY-MM-DD HH:MM without a trailing TZ suffix. The configured timezone still controls which local time is displayed. https://claude.ai/code/session_01JuRTR5Xjx8emQsyerBgGU7 --- main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index e14fdd1..27d4c81 100644 --- a/main.py +++ b/main.py @@ -308,17 +308,17 @@ def _fmt_dt(dt_str: str, s: dict) -> str: try: dt_utc = datetime.fromisoformat(dt_str.replace(' ', 'T')).replace(tzinfo=timezone.utc) local = dt_utc.astimezone(_display_tz(s)) - return local.strftime('%Y-%m-%d %H:%M %Z') + return local.strftime('%Y-%m-%d %H:%M') except Exception: - return dt_str[:16] + ' UTC' + return dt_str[:16] def _now_display(s: dict) -> str: """Current time formatted in the configured display timezone.""" try: local = datetime.now(timezone.utc).astimezone(_display_tz(s)) - return local.strftime('%Y-%m-%d %H:%M %Z') + return local.strftime('%Y-%m-%d %H:%M') except Exception: - return datetime.now(timezone.utc).strftime('%Y-%m-%d %H:%M UTC') + return datetime.now(timezone.utc).strftime('%Y-%m-%d %H:%M') def load_staff() -> list: if STAFF_FILE.exists():