Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slightly different date value to get updates Monday #557

Merged
merged 1 commit into from
Feb 25, 2025

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
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