Skip to content

Commit

Permalink
Merge pull request #18177 from Homebrew/bottle-created
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid authored Sep 2, 2024
2 parents 1f9bd2d + a07be23 commit 9665348
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Library/Homebrew/dev-cmd/bottle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,9 @@ def bottle_formula(formula)
"root_url" => bottle.root_url,
"cellar" => bottle_cellar.to_s,
"rebuild" => bottle.rebuild,
"date" => Pathname(filename.to_s).mtime.strftime("%F"),
# date is used for org.opencontainers.image.created which is an RFC 3339 date-time.
# Time#iso8601 produces an XML Schema date-time that meets RFC 3339 ABNF.
"date" => Pathname(filename.to_s).mtime.utc.iso8601,
"tags" => {
bottle_tag.to_s => {
"filename" => filename.url_encode,
Expand Down

0 comments on commit 9665348

Please sign in to comment.