major-domo-v2/tasks
Cal Corum cfbebe02c4
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m23s
fix: use explicit America/Chicago timezone for freeze/thaw scheduling
The production container has ambiguous timezone config — /etc/localtime
points to Etc/UTC but date reports CST. The transaction freeze/thaw task
used datetime.now() (naive, relying on OS timezone), causing scheduling
to fire at unpredictable wall-clock times.

- Add utils/timezone.py with centralized Chicago timezone helpers
- Fix tasks/transaction_freeze.py to use now_chicago() for scheduling
- Fix utils/logging.py timestamp to use proper UTC-aware datetime
- Add 14 timezone utility tests
- Update freeze task tests to mock now_chicago instead of datetime

Closes #43

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 15:55:49 -06:00
..
CLAUDE.md Add Google Sheets integration for draft pick tracking 2025-12-11 11:18:27 -06:00
custom_command_cleanup.py CLAUDE: Fix double emoji issue in Discord embeds 2025-10-16 23:09:21 -05:00
draft_monitor.py Add dem_week parameter to player team updates 2026-02-01 21:12:06 -06:00
live_scorebug_tracker.py CLAUDE: Refactor scorebug display and add dynamic channel visibility 2025-10-22 16:58:21 -05:00
TRANSACTION_EXECUTION_AUTOMATION.md CLAUDE: Automate player roster updates in transaction freeze/thaw system 2025-10-27 14:25:00 -05:00
transaction_freeze.py fix: use explicit America/Chicago timezone for freeze/thaw scheduling 2026-02-22 15:55:49 -06:00