Fix Dagger towncrier container using UTC instead of local time
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>
This commit is contained in:
parent
b36b30ef7a
commit
f0e1c81b59
2 changed files with 2 additions and 0 deletions
|
|
@ -31,6 +31,7 @@ class BlumeopsCi:
|
|||
return await (
|
||||
dag.container()
|
||||
.from_("python:3.12-slim")
|
||||
.with_env_variable("TZ", "America/Los_Angeles")
|
||||
# git is required because towncrier stages CHANGELOG.md via git add
|
||||
.with_exec(["apt-get", "update", "-qq"])
|
||||
.with_exec(["apt-get", "install", "-y", "-qq", "git"])
|
||||
|
|
|
|||
1
docs/changelog.d/fix-dagger-towncrier-tz.bugfix.md
Normal file
1
docs/changelog.d/fix-dagger-towncrier-tz.bugfix.md
Normal file
|
|
@ -0,0 +1 @@
|
|||
Set ``TZ=America/Los_Angeles`` in the Dagger ``build_changelog`` container so towncrier stamps the correct local date instead of UTC (which showed tomorrow's date for evening releases).
|
||||
Loading…
Add table
Add a link
Reference in a new issue