Fix Dagger towncrier container using UTC instead of local time #167

Merged
eblume merged 1 commit from fix/dagger-towncrier-tz into main 2026-02-11 21:27:35 -08:00
Owner

Summary

  • The build_changelog Dagger container (python:3.12-slim) defaults to UTC, causing towncrier to stamp tomorrow's date when releases are cut in the evening PST.
  • This is the root cause of the docs website (built via Dagger) showing Feb 12 while the repo CHANGELOG (built directly on the runner) correctly showed Feb 11.
  • Fix: set TZ=America/Los_Angeles in the Dagger container before running towncrier.

Verified

  • docker run --rm python:3.12-slimtowncrier _get_date() returns 2026-02-12 (wrong)
  • docker run --rm -e TZ=America/Los_Angeles python:3.12-slim → returns 2026-02-11 (correct)

Test plan

🤖 Generated with Claude Code

## Summary - The `build_changelog` Dagger container (`python:3.12-slim`) defaults to UTC, causing towncrier to stamp tomorrow's date when releases are cut in the evening PST. - This is the root cause of the docs website (built via Dagger) showing Feb 12 while the repo CHANGELOG (built directly on the runner) correctly showed Feb 11. - Fix: set `TZ=America/Los_Angeles` in the Dagger container before running towncrier. ## Verified - `docker run --rm python:3.12-slim` → `towncrier _get_date()` returns `2026-02-12` (wrong) - `docker run --rm -e TZ=America/Los_Angeles python:3.12-slim` → returns `2026-02-11` (correct) ## Test plan - [ ] Merge, then trigger a build-blumeops release - [ ] Verify the CHANGELOG date on https://docs.eblu.me/CHANGELOG matches the repo 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The build_changelog Dagger container (python:3.12-slim) defaults to UTC,
causing towncrier to stamp tomorrow's date for evening PST releases.
This is why the docs website showed Feb 12 while the repo CHANGELOG
(built on the runner) correctly showed Feb 11.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
eblume merged commit 1fc0c1b18b into main 2026-02-11 21:27:35 -08:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
eblume/blumeops!167
No description provided.