Merge pull request #14511 from Rylan12/fix-config-error

Fix error when showing `brew config` JSON update time
This commit is contained in:
Rylan Polster 2023-02-05 16:32:10 +01:00 committed by GitHub
commit ffad784971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,7 +148,7 @@ module SystemConfig
end
if (formula_json = Homebrew::API::HOMEBREW_CACHE_API/"formula.json") && formula_json.exist?
f.puts "Core tap JSON: #{formula_json.mtime.to_s(:short)}"
f.puts "Core tap JSON: #{formula_json.mtime.utc.strftime("%d %b %H:%M UTC")}"
elsif !CoreTap.instance.installed?
f.puts "Core tap: N/A"
end