Fix error when showing brew config JSON update time

This commit is contained in:
Rylan Polster 2023-02-05 16:07:00 +01:00
parent 0229196ac5
commit 672b8c036d
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

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