dev-cmd/bottle: use iso8601 for compliance with spec

This commit is contained in:
Michael Cho 2024-08-27 09:27:47 -04:00
parent 33f53ddb36
commit a07be232df
No known key found for this signature in database
GPG Key ID: 55E85E28A7CD1E85

View File

@ -685,7 +685,9 @@ module Homebrew
"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,