Skip to content

Conversation

tianon
Copy link
Member

@tianon tianon commented Feb 25, 2025

I intended for this to update every Monday (with "the last week's changes", including the weekend), but last monday doesn't match my intent until Tuesday, so this fixes that boundary condition by using last sunday instead, one second to midnight, and using date math to add a second.

I also found that even with --utc, I had to explicitly specify UTC in my string or it would be off by an hour.

I intended for this to update every Monday (with "the last week's changes", including the weekend), but `last monday` doesn't match my intent until *Tuesday*, so this fixes that boundary condition by using `last sunday` instead, one second to midnight, and using date math to add a second.

I also found that even with `--utc`, I had to explicitly specify `UTC` in my string or it would be off by an hour.
@tianon
Copy link
Member Author

tianon commented Feb 25, 2025

(this doesn't change versions.json, as expected)

@yosifkit yosifkit merged commit 26dd321 into docker-library:master Feb 25, 2025
14 of 16 checks passed
@yosifkit yosifkit deleted the monday branch February 25, 2025 22:06
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Mar 3, 2025
Changes:

- docker-library/golang@198ea08: Update tip to tip-20250301, commit b199d9766a8957c686ece568483586f08fc9a8b4
- docker-library/golang@26dd321: Merge pull request docker-library/golang#557 from infosiftr/monday
- docker-library/golang@e534186: Slightly different `date` value to get updates Monday
tglman pushed a commit to tglman/official-images that referenced this pull request Aug 11, 2025
Changes:

- docker-library/golang@198ea08: Update tip to tip-20250301, commit b199d9766a8957c686ece568483586f08fc9a8b4
- docker-library/golang@26dd321: Merge pull request docker-library/golang#557 from infosiftr/monday
- docker-library/golang@e534186: Slightly different `date` value to get updates Monday
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants