fix: Add TZ=America/Montreal to hermes container for correct cron scheduling #4

Closed
Hermes wants to merge 1 commits from fix/hermes-timezone-setting into master
Collaborator

Problem

The hermes container runs in UTC by default, causing cron jobs scheduled for local time (e.g., 2 AM EDT) to execute at the wrong time (2 AM UTC = 10 PM EDT previous day).

Solution

Added TZ=America/Montreal environment variable to the hermes service in compose.yml. This ensures:

  • Container clock uses Eastern Time (America/Montreal)
  • Cron schedules interpret times in local timezone
  • Automatic DST handling (no manual schedule changes needed)

Deployment

cd /opt/data/infra/assets/compose
git checkout master
git pull
git merge fix/hermes-timezone-setting
sudo nixos-rebuild switch --flake .#lazyworkhorse

Verification

docker exec hermes date
# Should show EDT/EST time, not UTC
  • Cron job: nightly-issue-fixer (runs at 2 AM local time)
## Problem The hermes container runs in UTC by default, causing cron jobs scheduled for local time (e.g., 2 AM EDT) to execute at the wrong time (2 AM UTC = 10 PM EDT previous day). ## Solution Added `TZ=America/Montreal` environment variable to the hermes service in compose.yml. This ensures: - Container clock uses Eastern Time (America/Montreal) - Cron schedules interpret times in local timezone - Automatic DST handling (no manual schedule changes needed) ## Deployment ```bash cd /opt/data/infra/assets/compose git checkout master git pull git merge fix/hermes-timezone-setting sudo nixos-rebuild switch --flake .#lazyworkhorse ``` ## Verification ```bash docker exec hermes date # Should show EDT/EST time, not UTC ``` ## Related - Cron job: nightly-issue-fixer (runs at 2 AM local time)
Hermes added 1 commit 2026-04-29 11:32:34 +00:00
gortium closed this pull request 2026-05-09 19:53:43 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: gortium/compose#4
No description provided.